Class: Rounders::Stores::Store

Inherits:
Object
  • Object
show all
Includes:
Plugins::Pluggable
Defined in:
lib/rounders/stores/store.rb

Direct Known Subclasses

Memory

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Plugins::Pluggable

included

Class Method Details

.inherited(klass) ⇒ Object



19
20
21
# File 'lib/rounders/stores/store.rb', line 19

def inherited(klass)
  Rounders.stores[klass.symbol] = klass
end

Instance Method Details

#[](key) ⇒ Object



6
7
8
# File 'lib/rounders/stores/store.rb', line 6

def [](key)
  data[key]
end

#[]=(key, value) ⇒ Object



10
11
12
# File 'lib/rounders/stores/store.rb', line 10

def []=(key, value)
  data[key] = value
end

#dataObject



14
15
16
# File 'lib/rounders/stores/store.rb', line 14

def data
  raise 'Called abstract method: data'
end