Methods

Class Public methods

new()

📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 60
      def initialize
        @parts = []
        @binds = []
      end
🔎 See on GitHub

Instance Public methods

<<(str)

📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 65
      def <<(str)
        @parts << str
        self
      end
🔎 See on GitHub

add_bind(obj)

📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 70
      def add_bind(obj)
        @binds << obj
        @parts << Substitute.new
        self
      end
🔎 See on GitHub

value()

📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 76
      def value
        [@parts, @binds]
      end
🔎 See on GitHub