Class: Arel::Visitors::Visitor

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

Direct Known Subclasses

Dot, ToSql

Instance Method Summary collapse

Constructor Details

#initializeVisitor

Returns a new instance of Visitor.



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

def initialize
  @dispatch = get_dispatch_cache
end

Instance Method Details

#accept(object, collector = nil) ⇒ Object



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

def accept(object, collector = nil)
  visit object, collector
end