Class: Riml::Compiler::DrillDownVisitor

Inherits:
Visitor
  • Object
show all
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

EstablishScopeVisitor

Instance Method Summary collapse

Methods inherited from Visitor

#initialize, #visit

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