Class: Arel::Collectors::Bind
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/arel/collectors/bind.rb |
Class Method Summary
- .new ⇒ Bind constructor
Instance Attribute Summary
- #retryable rw
Instance Method Summary
Constructor Details
.new ⇒ Bind
# File 'activerecord/lib/arel/collectors/bind.rb', line 8
def initialize @binds = [] end
Instance Attribute Details
#retryable (rw)
[ GitHub ]# File 'activerecord/lib/arel/collectors/bind.rb', line 6
attr_accessor :retryable
Instance Method Details
#<<(str)
[ GitHub ]# File 'activerecord/lib/arel/collectors/bind.rb', line 12
def <<(str) self end
#add_bind(bind)
[ GitHub ]# File 'activerecord/lib/arel/collectors/bind.rb', line 16
def add_bind(bind, &) @binds << bind self end
#add_binds(binds, proc_for_binds = nil)
[ GitHub ]# File 'activerecord/lib/arel/collectors/bind.rb', line 21
def add_binds(binds, proc_for_binds = nil) @binds.concat proc_for_binds ? binds.map(&proc_for_binds) : binds self end
#value
[ GitHub ]# File 'activerecord/lib/arel/collectors/bind.rb', line 26
def value @binds end