Class: Predicator::Visitors::Visitor

Inherits:
Object
  • Object
show all
Defined in:
lib/predicator/visitors/visitor.rb

Direct Known Subclasses

Dot, Each, Instructions, String

Constant Summary collapse

DISPATCH_CACHE =
Hash.new { |h,k|
  h[k] = "visit_#{k}"
}

Instance Method Summary collapse

Instance Method Details

#accept(node) ⇒ Object



8
9
10
# File 'lib/predicator/visitors/visitor.rb', line 8

def accept node
  visit node
end