Class: Rhubarb::Persistence::DbCollection
- Inherits:
-
Hash
- Object
- Hash
- Rhubarb::Persistence::DbCollection
- Defined in:
- lib/rhubarb/persistence.rb
Instance Attribute Summary collapse
-
#use_prepared_stmts ⇒ Object
Returns the value of attribute use_prepared_stmts.
Instance Method Summary collapse
- #[]=(key, db) ⇒ Object
-
#initialize ⇒ DbCollection
constructor
A new instance of DbCollection.
- #orig_set ⇒ Object
Constructor Details
#initialize ⇒ DbCollection
Returns a new instance of DbCollection.
33 34 35 |
# File 'lib/rhubarb/persistence.rb', line 33 def initialize self.use_prepared_stmts = true end |
Instance Attribute Details
#use_prepared_stmts ⇒ Object
Returns the value of attribute use_prepared_stmts.
31 32 33 |
# File 'lib/rhubarb/persistence.rb', line 31 def use_prepared_stmts @use_prepared_stmts end |
Instance Method Details
#[]=(key, db) ⇒ Object
37 38 39 40 |
# File 'lib/rhubarb/persistence.rb', line 37 def []=(key,db) setup_db(db) if db orig_set(key,db) end |
#orig_set ⇒ Object
30 |
# File 'lib/rhubarb/persistence.rb', line 30 alias orig_set []= |