Module: Isomorfeus
- Defined in:
- lib/isomorfeus/redux/config.rb,
lib/isomorfeus/redux/imports.rb,
lib/isomorfeus/browser_store_api.rb,
lib/isomorfeus/execution_environment.rb
Defined Under Namespace
Modules: BrowserStoreApi, Redux
Class Attribute Summary collapse
-
.on_android ⇒ Object
Returns the value of attribute on_android.
-
.on_androidtv ⇒ Object
Returns the value of attribute on_androidtv.
-
.on_browser ⇒ Object
Returns the value of attribute on_browser.
-
.on_database ⇒ Object
Returns the value of attribute on_database.
-
.on_desktop ⇒ Object
Returns the value of attribute on_desktop.
-
.on_ios ⇒ Object
Returns the value of attribute on_ios.
-
.on_mobile ⇒ Object
Returns the value of attribute on_mobile.
-
.on_pad ⇒ Object
Returns the value of attribute on_pad.
-
.on_server ⇒ Object
Returns the value of attribute on_server.
-
.on_ssr ⇒ Object
Returns the value of attribute on_ssr.
-
.on_tv ⇒ Object
Returns the value of attribute on_tv.
-
.on_tvos ⇒ Object
Returns the value of attribute on_tvos.
-
.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_android? ⇒ Boolean
- .on_androidtv? ⇒ Boolean
- .on_browser? ⇒ Boolean
- .on_database? ⇒ Boolean
- .on_desktop? ⇒ Boolean
-
.on_ios? ⇒ Boolean
TODO the following need to be reworked a little, as react native is no longer a target.
- .on_mobile? ⇒ Boolean
- .on_pad? ⇒ Boolean
- .on_server? ⇒ Boolean
- .on_ssr? ⇒ Boolean
- .on_tv? ⇒ Boolean
- .on_tvos? ⇒ Boolean
Class Attribute Details
.on_android ⇒ Object
Returns the value of attribute on_android.
9 10 11 |
# File 'lib/isomorfeus/execution_environment.rb', line 9 def on_android @on_android end |
.on_androidtv ⇒ Object
Returns the value of attribute on_androidtv.
14 15 16 |
# File 'lib/isomorfeus/execution_environment.rb', line 14 def on_androidtv @on_androidtv end |
.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_database ⇒ Object
Returns the value of attribute on_database.
12 13 14 |
# File 'lib/isomorfeus/execution_environment.rb', line 12 def on_database @on_database end |
.on_desktop ⇒ Object
Returns the value of attribute on_desktop.
7 8 9 |
# File 'lib/isomorfeus/execution_environment.rb', line 7 def on_desktop @on_desktop end |
.on_ios ⇒ Object
Returns the value of attribute on_ios.
8 9 10 |
# File 'lib/isomorfeus/execution_environment.rb', line 8 def on_ios @on_ios end |
.on_mobile ⇒ Object
Returns the value of attribute on_mobile.
10 11 12 |
# File 'lib/isomorfeus/execution_environment.rb', line 10 def on_mobile @on_mobile end |
.on_pad ⇒ Object
Returns the value of attribute on_pad.
11 12 13 |
# File 'lib/isomorfeus/execution_environment.rb', line 11 def on_pad @on_pad end |
.on_server ⇒ Object
Returns the value of attribute on_server.
6 7 8 |
# File 'lib/isomorfeus/execution_environment.rb', line 6 def on_server @on_server 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 |
.on_tv ⇒ Object
Returns the value of attribute on_tv.
15 16 17 |
# File 'lib/isomorfeus/execution_environment.rb', line 15 def on_tv @on_tv end |
.on_tvos ⇒ Object
Returns the value of attribute on_tvos.
13 14 15 |
# File 'lib/isomorfeus/execution_environment.rb', line 13 def on_tvos @on_tvos 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_android? ⇒ Boolean
43 44 45 46 |
# File 'lib/isomorfeus/execution_environment.rb', line 43 def on_android? # true if running in react-native on android @on_android end |
.on_androidtv? ⇒ Boolean
68 69 70 71 |
# File 'lib/isomorfeus/execution_environment.rb', line 68 def on_androidtv? # true if running in react-native on androidtv @on_androidtv end |
.on_browser? ⇒ Boolean
17 18 19 20 |
# File 'lib/isomorfeus/execution_environment.rb', line 17 def on_browser? # true if running on browser @on_browser end |
.on_database? ⇒ Boolean
58 59 60 61 |
# File 'lib/isomorfeus/execution_environment.rb', line 58 def on_database? # true if running in database context @on_database end |
.on_desktop? ⇒ Boolean
32 33 34 35 |
# File 'lib/isomorfeus/execution_environment.rb', line 32 def on_desktop? # true if running in electron @on_desktop end |
.on_ios? ⇒ Boolean
TODO the following need to be reworked a little, as react native is no longer a target
38 39 40 41 |
# File 'lib/isomorfeus/execution_environment.rb', line 38 def on_ios? # true if running in react-native on ios @on_ios end |
.on_mobile? ⇒ Boolean
48 49 50 51 |
# File 'lib/isomorfeus/execution_environment.rb', line 48 def on_mobile? # true if running in react-native @on_mobile end |
.on_pad? ⇒ Boolean
53 54 55 56 |
# File 'lib/isomorfeus/execution_environment.rb', line 53 def on_pad? # true if running on a pad @on_pad end |
.on_server? ⇒ Boolean
27 28 29 30 |
# File 'lib/isomorfeus/execution_environment.rb', line 27 def on_server? # true if running on server @on_server end |
.on_ssr? ⇒ Boolean
22 23 24 25 |
# File 'lib/isomorfeus/execution_environment.rb', line 22 def on_ssr? # true if running in server side rendering in restricted node js vm @on_ssr end |
.on_tv? ⇒ Boolean
73 74 75 76 |
# File 'lib/isomorfeus/execution_environment.rb', line 73 def on_tv? # true if running in react-native on a tv @on_tv end |
.on_tvos? ⇒ Boolean
63 64 65 66 |
# File 'lib/isomorfeus/execution_environment.rb', line 63 def on_tvos? # true if running in react-native on tvOS @on_tvos end |