Module: Tablets::Global::Store

Extended by:
Forwardable
Included in:
Tablets
Defined in:
lib/tablets/global/store.rb

Overview

Tables store Expects @tablets to be defined elsewhere

Instance Method Summary collapse

Instance Method Details

#register_tablet(name, tablet_class) ⇒ Object

put tablet into store



17
18
19
20
# File 'lib/tablets/global/store.rb', line 17

def register_tablet(name, tablet_class)
  @tablets ||= {}
  @tablets[name] = tablet_class
end

#tabletsObject



12
13
14
# File 'lib/tablets/global/store.rb', line 12

def tablets
  @tablets || {}
end