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.
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 |