Class: Arel::Visitors::Visitor
- Defined in:
- activerecord/lib/arel/visitors/visitor.rb
Instance Method Summary collapse
- #accept(object, collector = nil) ⇒ Object
-
#initialize ⇒ Visitor
constructor
A new instance of Visitor.
Constructor Details
#initialize ⇒ Visitor
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 |