Sha256: 98bcf3fe243870dbffcacee1e909d3b210e2e33be9dfe78becd728496597d499
Contents?: true
Size: 584 Bytes
Versions: 7
Compression:
Stored size: 584 Bytes
Contents
module Arel module Visitors module BindVisitor def initialize target @block = nil super end def accept node, &block @block = block if block_given? super end private def visit_Arel_Nodes_Assignment o, a if o.right.is_a? Arel::Nodes::BindParam "#{visit o.left, a} = #{visit o.right, a}" else super end end def visit_Arel_Nodes_BindParam o, a if @block @block.call else super end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems