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.



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

def initialize
  @dispatch = get_dispatch_cache
end

Instance Method Details

#accept(object) ⇒ Object



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

def accept object
  visit object
end