Class: Rhubarb::Persistence::DbCollection

Inherits:
Hash
  • Object
show all
Defined in:
lib/rhubarb/persistence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDbCollection

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_stmtsObject

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_setObject



30
# File 'lib/rhubarb/persistence.rb', line 30

alias orig_set []=