Class: Mutant::Walker
- Inherits:
-
Object
- Object
- Mutant::Walker
- Defined in:
- lib/mutant/walker.rb
Overview
Walker for all ast nodes
Class Method Summary collapse
-
.run(root, &block) ⇒ self
private
Run walkter.
Instance Method Summary collapse
-
#initialize(root, block) ⇒ undefined
constructor
private
Initialize and run walker.
Constructor Details
#initialize(root, block) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize and run walker
32 33 34 35 |
# File 'lib/mutant/walker.rb', line 32 def initialize(root, block) @root, @block = root, block dispatch(root) end |