Module: Isomorfeus
- Defined in:
- lib/isomorfeus/redux_config.rb,
lib/isomorfeus/execution_environment.rb
Class Attribute Summary collapse
-
.on_browser ⇒ Object
Returns the value of attribute on_browser.
-
.on_ssr ⇒ Object
Returns the value of attribute on_ssr.
-
.store ⇒ Object
readonly
Returns the value of attribute store.
-
.store_initialized ⇒ Object
readonly
Returns the value of attribute store_initialized.
Class Method Summary collapse
- .force_init_store! ⇒ Object
- .init_store ⇒ Object
- .on_browser? ⇒ Boolean
- .on_server? ⇒ Boolean
- .on_ssr? ⇒ Boolean
Class Attribute Details
.on_browser ⇒ Object
Returns the value of attribute on_browser.
4 5 6 |
# File 'lib/isomorfeus/execution_environment.rb', line 4 def on_browser @on_browser end |
.on_ssr ⇒ Object
Returns the value of attribute on_ssr.
5 6 7 |
# File 'lib/isomorfeus/execution_environment.rb', line 5 def on_ssr @on_ssr end |
.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 |
.on_browser? ⇒ Boolean
7 8 9 |
# File 'lib/isomorfeus/execution_environment.rb', line 7 def on_browser? @on_browser end |
.on_server? ⇒ Boolean
15 16 17 |
# File 'lib/isomorfeus/execution_environment.rb', line 15 def on_server? false end |
.on_ssr? ⇒ Boolean
11 12 13 |
# File 'lib/isomorfeus/execution_environment.rb', line 11 def on_ssr? @on_ssr end |