abstract-synthesizer 0.0.10 → 0.0.11
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 +4 -4
- data/Gemfile.lock +1 -1
- data/gemset.nix +1 -1
- data/lib/abstract-synthesizer/version.rb +1 -1
- data/lib/abstract-synthesizer.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b592c5f1624c09b9b56cff6b1f333dca31a721007ca45b0f08f01c1f87c3c7ed
|
4
|
+
data.tar.gz: 3722fce89e95cc3641dbf4eacc7d2ea135b1fedf0bc85c4e7e05cf104f5d4b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb25b1293793d53f0630fe5ed7f71aea5154688ac14ce7baaff400a9ec2c81009395700197cb83872c6e7d00919d31e634748dd48e2405edcf6d00be72cc9cb4
|
7
|
+
data.tar.gz: 538a544b09cd462241afdeb5dc6117c633ab4831fd29d0ba87b923c7293c406e797ba9d15fb8683c36b21bd07b53e4a836b6e1eb7d9d95a736612822c578d832
|
data/Gemfile.lock
CHANGED
data/gemset.nix
CHANGED
data/lib/abstract-synthesizer.rb
CHANGED
@@ -11,17 +11,17 @@ class AbstractSynthesizer
|
|
11
11
|
def initialize(name: nil) # rubocop:disable Lint/UnusedMethodArgument
|
12
12
|
@translation = {
|
13
13
|
ancestors: [],
|
14
|
-
|
14
|
+
manifest: {},
|
15
15
|
context: nil
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
19
|
def clear!
|
20
|
-
translation[:
|
20
|
+
translation[:manifest] = {}
|
21
21
|
end
|
22
22
|
|
23
23
|
def synthesis
|
24
|
-
translation[:
|
24
|
+
translation[:manifest]
|
25
25
|
end
|
26
26
|
|
27
27
|
def synthesize(content = nil, &block)
|
@@ -33,8 +33,8 @@ class AbstractSynthesizer
|
|
33
33
|
self
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
@translation[:
|
36
|
+
def manifest
|
37
|
+
@translation[:manifest]
|
38
38
|
end
|
39
39
|
|
40
40
|
private
|
@@ -85,7 +85,7 @@ class AbstractSynthesizer
|
|
85
85
|
translation[:ancestors].append(method)
|
86
86
|
yield if block_given?
|
87
87
|
if args.length == 1
|
88
|
-
translation[:
|
88
|
+
translation[:manifest].bury(*translation[:ancestors], args[0])
|
89
89
|
translation[:ancestors].pop
|
90
90
|
elsif args.empty?
|
91
91
|
translation[:ancestors].pop
|