Methods

Class Public methods

new()

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

Instance Public methods

<<(str)

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

add_bind(obj)

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

value()

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