Class: Robut::Storage::HashStore
- Defined in:
- lib/robut/storage/hash_store.rb
Overview
A simple in-memory store backed by a Hash.
Class Method Summary collapse
-
.[](k) ⇒ Object
Returns the value at key
k
. -
.[]=(k, v) ⇒ Object
Stores
v
in the hash.
Class Method Details
.[](k) ⇒ Object
Returns the value at key k
.
14 15 16 |
# File 'lib/robut/storage/hash_store.rb', line 14 def [](k) internal[k] end |
.[]=(k, v) ⇒ Object
Stores v
in the hash.
9 10 11 |
# File 'lib/robut/storage/hash_store.rb', line 9 def []=(k, v) internal[k] = v end |