node_visitor 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/node_visitor/version.rb +1 -1
- data/lib/node_visitor.rb +2 -0
- 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: 733804b808e37fc559e0cb45451f1f1417479e6cfcc9e48c9372a9fdb392ff4d
|
4
|
+
data.tar.gz: 0115f0af3b595803bdfa0bcfe04a0d109a3935ac32ab735eef2577a6523daa1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f34adbca18a00f13e2a1c8bfd7be646d042fa68fc681bd214618bf85bf4ba57a30831ccc47665d713d1901597cf9aa41324f91042d726ee7e0c314f0deb96a2b
|
7
|
+
data.tar.gz: 1bdd078316a131230adf7957186826ce050719be9c416ee5795ba3f1cf4e17d3c2467845332b971ed856642993f57f28ccdbf6bc06acd25d75b40613757823df
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/node_visitor/version.rb
CHANGED
data/lib/node_visitor.rb
CHANGED
@@ -19,6 +19,8 @@ class NodeVisitor
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def visit(node, block_context = self)
|
22
|
+
return if @callbacks.empty?
|
23
|
+
|
22
24
|
callbacks = @callbacks[:all]
|
23
25
|
callbacks.each { |callback| block_context.instance_exec(node, &callback[:block]) if callback[:at] == 'start' } if callbacks
|
24
26
|
visit_node(node)
|