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