Class: Store

Inherits:
Object show all
Defined in:
flow/store/store.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) [](key)

Returns the value of a key

Examples:

Store['foo']
#=> 42


# File 'flow/store/store.rb', line 2

+ (Object) []=(key, value)

Sets a value for a key

Examples:

Store['foo'] = 42


# File 'flow/store/store.rb', line 8

+ (Hash) all

Returns a hash containing all the keys and values

Examples:

Store.all
#=> { 'foo' => 42 }

Returns:

  • (Hash)


# File 'flow/store/store.rb', line 24

+ (Object) delete(key)

Deletes a key from storage.

Examples:

Store.delete('foo')


# File 'flow/store/store.rb', line 13