Class: ActiveRecord::StatementCache::Params
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | activerecord/lib/active_record/statement_cache.rb |
Class Method Summary
- .new ⇒ Params constructor
Instance Method Summary
Constructor Details
.new ⇒ Params
# File 'activerecord/lib/active_record/statement_cache.rb', line 120
def initialize @index = 0 end
Instance Method Details
#bind(key = @index)
[ GitHub ]# File 'activerecord/lib/active_record/statement_cache.rb', line 124
def bind(key = @index) @index += 1 Substitute.new(key) end