Class: Qbot::Storage::Memory
- Defined in:
- lib/qbot/storage/memory.rb
Instance Method Summary collapse
-
#initialize ⇒ Memory
constructor
A new instance of Memory.
- #namespace(ns) ⇒ Object
Methods inherited from Driver
Constructor Details
#initialize ⇒ Memory
Returns a new instance of Memory.
7 8 9 |
# File 'lib/qbot/storage/memory.rb', line 7 def initialize @db = {} end |
Instance Method Details
#namespace(ns) ⇒ Object
11 12 13 |
# File 'lib/qbot/storage/memory.rb', line 11 def namespace(ns) @db[ns] end |