Module: Isomorfeus
- Defined in:
- lib/isomorfeus/redux_config.rb
Class Attribute Summary collapse
-
.store ⇒ Object
readonly
Returns the value of attribute store.
-
.store_initialized ⇒ Object
readonly
Returns the value of attribute store_initialized.
Class Method Summary collapse
Class Attribute Details
.store ⇒ Object (readonly)
Returns the value of attribute store.
4 5 6 |
# File 'lib/isomorfeus/redux_config.rb', line 4 def store @store end |
.store_initialized ⇒ Object (readonly)
Returns the value of attribute store_initialized.
3 4 5 |
# File 'lib/isomorfeus/redux_config.rb', line 3 def store_initialized @store_initialized end |
Class Method Details
.force_init_store! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/isomorfeus/redux_config.rb', line 12 def force_init_store! # at least one reducer must have been added at this stage # this happened in isomorfeus-react.rb, where the component reducers were added @store = Redux::Store.init! `Opal.Isomorfeus.store = #@store` end |
.init_store ⇒ Object
6 7 8 9 10 |
# File 'lib/isomorfeus/redux_config.rb', line 6 def init_store return if store_initialized @store_initialized = true force_init_store! end |