Module: Tablets::Global::Store
Overview
Tables store Expects @tablets to be defined elsewhere
Instance Method Summary collapse
-
#register_tablet(name, tablet_class) ⇒ Object
put tablet into store.
- #tablets ⇒ Object
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 |
#tablets ⇒ Object
12 13 14 |
# File 'lib/tablets/global/store.rb', line 12 def tablets @tablets || {} end |