foobara 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2415af0fac9d64a2075b934b81e2949ca672135419cd3c8dad6ee7655b449288
|
4
|
+
data.tar.gz: 5a775144eb8d9073d6d9dcaf25590004fab2782de345438354b0b386b53d83ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43c26a3672bee00ffd4cb8a1939bf87194274a61f4f9e824bce378cbb216edb7b4cef85a84fd6d1695448311302e9a6db41370666c3c82f898c174e180b9835f
|
7
|
+
data.tar.gz: 1944745066fca3464cb6e4a733a091ab982c2cdd8d38b5fae2ac877ffa2a0cff61990df339d5e49fa8e08274970a84812a688d35595ec3ee81c3155be6bcbc52
|
data/CHANGELOG.md
CHANGED
@@ -9,10 +9,23 @@ module Foobara
|
|
9
9
|
@builtin_types ||= Set.new
|
10
10
|
end
|
11
11
|
|
12
|
+
def add_builtin_type(type)
|
13
|
+
@builtin_references = nil
|
14
|
+
builtin_types << type
|
15
|
+
end
|
16
|
+
|
17
|
+
def builtin_references
|
18
|
+
@builtin_references ||= builtin_types.to_set(&:foobara_manifest_reference)
|
19
|
+
end
|
20
|
+
|
12
21
|
def builtin?(type)
|
13
22
|
builtin_types.include?(type)
|
14
23
|
end
|
15
24
|
|
25
|
+
def builtin_reference?(reference)
|
26
|
+
builtin_references.include?(reference)
|
27
|
+
end
|
28
|
+
|
16
29
|
def [](symbol)
|
17
30
|
builtin_types.find do |type|
|
18
31
|
type.type_symbol == symbol
|