Skip to Content Skip to Search
Methods
#
A
N
V

Attributes

[RW] preparable

Class Public methods

new()

# File activerecord/lib/active_record/statement_cache.rb, line 67
def initialize
  @parts = []
  @binds = []
end

Instance Public methods

<<(str)

# File activerecord/lib/active_record/statement_cache.rb, line 72
def <<(str)
  @parts << str
  self
end

add_bind(obj)

# File activerecord/lib/active_record/statement_cache.rb, line 77
def add_bind(obj)
  @binds << obj
  @parts << Substitute.new
  self
end

add_binds(binds)

# File activerecord/lib/active_record/statement_cache.rb, line 83
def add_binds(binds)
  @binds.concat binds
  binds.size.times do |i|
    @parts << ", " unless i == 0
    @parts << Substitute.new
  end
  self
end

value()

# File activerecord/lib/active_record/statement_cache.rb, line 92
def value
  [@parts, @binds]
end