Module: Arel::Visitors::BindVisitor

Defined in:
lib/arel/visitors/bind_visitor.rb

Instance Method Summary collapse

Instance Method Details

#accept(node, collector, &block) ⇒ Object



10
11
12
13
# File 'lib/arel/visitors/bind_visitor.rb', line 10

def accept node, collector, &block
  @block = block if block_given?
  super
end

#initialize(target) ⇒ Object



5
6
7
8
# File 'lib/arel/visitors/bind_visitor.rb', line 5

def initialize target
  @block = nil
  super
end