Module: Isomorfeus
- Defined in:
- lib/isomorfeus/config.rb,
lib/isomorfeus/top_level.rb,
lib/isomorfeus/top_level_ssr.rb,
lib/isomorfeus/props/validator.rb,
lib/isomorfeus/react_view_helper.rb,
lib/isomorfeus/props/validate_hash_proxy.rb
Defined Under Namespace
Modules: Props, ReactViewHelper
Classes: TopLevel
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.env ⇒ Object
Returns the value of attribute env.
8
9
10
|
# File 'lib/isomorfeus/config.rb', line 8
def env
@env
end
|
.initial_state_fetched ⇒ Object
Returns the value of attribute initial_state_fetched.
4
5
6
|
# File 'lib/isomorfeus/config.rb', line 4
def initial_state_fetched
@initial_state_fetched
end
|
.initialized ⇒ Object
Returns the value of attribute initialized.
7
8
9
|
# File 'lib/isomorfeus/config.rb', line 7
def initialized
@initialized
end
|
.server_side_rendering ⇒ Object
Returns the value of attribute server_side_rendering.
95
96
97
|
# File 'lib/isomorfeus/config.rb', line 95
def server_side_rendering
@server_side_rendering
end
|
.ssr_response_status ⇒ Object
Returns the value of attribute ssr_response_status.
6
7
8
|
# File 'lib/isomorfeus/config.rb', line 6
def ssr_response_status
@ssr_response_status
end
|
.top_component ⇒ Object
Returns the value of attribute top_component.
5
6
7
|
# File 'lib/isomorfeus/config.rb', line 5
def top_component
@top_component
end
|
Class Method Details
.add_client_init_class_name(init_class_name) ⇒ Object
26
27
28
|
# File 'lib/isomorfeus/config.rb', line 26
def add_client_init_class_name(init_class_name)
client_init_class_names << init_class_name
end
|
.add_client_option(key, value = nil) ⇒ Object
30
31
32
33
|
# File 'lib/isomorfeus/config.rb', line 30
def add_client_option(key, value = nil)
self.class.attr_accessor(key)
self.send("#{key}=", value)
end
|
.cached_component_class(class_name) ⇒ Object
41
42
43
44
|
# File 'lib/isomorfeus/config.rb', line 41
def cached_component_class(class_name)
return cached_component_classes[class_name] if cached_component_classes.key?(class_name)
cached_component_classes[class_name] = "::#{class_name}".constantize
end
|
.cached_component_classes ⇒ Object
36
37
38
|
# File 'lib/isomorfeus/config.rb', line 36
def cached_component_classes
@cached_component_classes ||= {}
end
|
.configuration(&block) ⇒ Object
98
99
100
|
# File 'lib/isomorfeus/config.rb', line 98
def configuration(&block)
block.call(self)
end
|
.development? ⇒ Boolean
59
60
61
|
# File 'lib/isomorfeus/config.rb', line 59
def development?
@development
end
|
.execute_init_classes ⇒ Object
46
47
48
49
50
|
# File 'lib/isomorfeus/config.rb', line 46
def execute_init_classes
client_init_class_names.each do |constant|
constant.constantize.send(:init)
end
end
|
.init ⇒ Object
10
11
12
13
14
15
|
# File 'lib/isomorfeus/config.rb', line 10
def init
return if initialized
@initialized = true
Isomorfeus.init_store
execute_init_classes
end
|
.production? ⇒ Boolean
63
64
65
|
# File 'lib/isomorfeus/config.rb', line 63
def production?
@production
end
|
.ssr_contexts ⇒ Object
121
122
123
|
# File 'lib/isomorfeus/config.rb', line 121
def ssr_contexts
@ssr_contexts ||= {}
end
|
.test? ⇒ Boolean
67
68
69
|
# File 'lib/isomorfeus/config.rb', line 67
def test?
@test
end
|
.version ⇒ Object
125
126
127
|
# File 'lib/isomorfeus/config.rb', line 125
def version
Isomorfeus::VERSION
end
|