Class: Journey::Visitors::Visitor

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

Overview

:nodoc:

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#accept(node) ⇒ Object



9
10
11
# File 'lib/journey/visitors.rb', line 9

def accept node
  visit node
end