Class: OccamsRecord::BindsConverter::Positional
- Defined in:
- lib/occams-record/binds_converter/positional.rb
Overview
Converts Rails-style positional binds (?) into native Ruby format (%s).
Constant Summary
Constants inherited from Abstract
Instance Method Summary collapse
-
#initialize(sql) ⇒ Positional
constructor
A new instance of Positional.
Methods inherited from Abstract
Constructor Details
#initialize(sql) ⇒ Positional
Returns a new instance of Positional.
7 8 9 |
# File 'lib/occams-record/binds_converter/positional.rb', line 7 def initialize(sql) super(sql, "?".freeze) end |