Class: Riml::Compiler::DrillDownVisitor
- Defined in:
- lib/riml/compiler.rb
Overview
helper to drill down to all descendants of a certain node and do something to all or a set of them
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Visitor
Constructor Details
This class inherits a constructor from Riml::Compiler::Visitor
Instance Method Details
#walk_node!(node) ⇒ Object
514 515 516 517 518 |
# File 'lib/riml/compiler.rb', line 514 def walk_node!(node) node.each do |expr| expr.accept(self) if Visitable === expr end if node.respond_to?(:each) end |