Class: Arel::Visitors::Visitor

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

Direct Known Subclasses

DepthFirst, Dot, Reduce

Instance Method Summary collapse

Constructor Details

#initializeVisitor

Returns a new instance of Visitor.



5
6
7
# File 'lib/arel/visitors/visitor.rb', line 5

def initialize
  @dispatch = get_dispatch_cache
end

Instance Method Details

#accept(object) ⇒ Object



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

def accept object
  visit object
end