Class: Robut::Storage::HashStore

Inherits:
Base
  • Object
show all
Defined in:
lib/robut/storage/hash_store.rb

Overview

A simple in-memory store backed by a Hash.

Class Method Summary collapse

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