module Isomorfeus
Attributes
on_android[RW]
on_androidtv[RW]
on_browser[RW]
on_database[RW]
on_desktop[RW]
on_ios[RW]
on_mobile[RW]
on_pad[RW]
on_server[RW]
on_ssr[RW]
on_tv[RW]
on_tvos[RW]
store[R]
store_initialized[R]
Public Class Methods
force_init_store!()
click to toggle source
# 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()
click to toggle source
# File lib/isomorfeus/redux/config.rb, line 6 def init_store return if store_initialized @store_initialized = true force_init_store! end
on_android?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 43 def on_android? # true if running in react-native on android @on_android end
on_androidtv?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 68 def on_androidtv? # true if running in react-native on androidtv @on_androidtv end
on_browser?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 17 def on_browser? # true if running on browser @on_browser end
on_database?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 58 def on_database? # true if running in database context @on_database end
on_desktop?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 32 def on_desktop? # true if running in electron @on_desktop end
on_ios?()
click to toggle source
TODO the following need to be reworked a little, as react native is no longer a target
# File lib/isomorfeus/execution_environment.rb, line 38 def on_ios? # true if running in react-native on ios @on_ios end
on_mobile?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 48 def on_mobile? # true if running in react-native @on_mobile end
on_pad?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 53 def on_pad? # true if running on a pad @on_pad end
on_server?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 27 def on_server? # true if running on server @on_server end
on_ssr?()
click to toggle source
# 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?()
click to toggle source
# 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?()
click to toggle source
# File lib/isomorfeus/execution_environment.rb, line 63 def on_tvos? # true if running in react-native on tvOS @on_tvos end