Class: Arel::Visitors::Visitor

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/visitors/visitor.rb', line 10

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