Class: JsRender::Configuration
- Inherits:
-
Object
- Object
- JsRender::Configuration
- Defined in:
- lib/js_render/configuration.rb
Instance Attribute Summary collapse
-
#asset_finder_class ⇒ Object
Returns the value of attribute asset_finder_class.
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#cache_size ⇒ Object
Returns the value of attribute cache_size.
-
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
-
#client_render_function ⇒ Object
Returns the value of attribute client_render_function.
-
#component_paths ⇒ Object
Returns the value of attribute component_paths.
-
#component_suffix ⇒ Object
Returns the value of attribute component_suffix.
-
#key_transforms ⇒ Object
Returns the value of attribute key_transforms.
-
#server_render_function ⇒ Object
Returns the value of attribute server_render_function.
-
#should_server_render ⇒ Object
Returns the value of attribute should_server_render.
-
#use_asset_pipeline ⇒ Object
Returns the value of attribute use_asset_pipeline.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/js_render/configuration.rb', line 31 def initialize @base_path = 'app/assets/javascripts' @component_paths = ['/**/*'] @component_suffix = '.js' @server_render_function = 'window.render*Server' @client_render_function = 'window.render*Client' @use_asset_pipeline = false @asset_finder_class = nil @key_transforms = [] @should_server_render = true @cache_size = 100 @cache_ttl = 10 * 60 end |
Instance Attribute Details
#asset_finder_class ⇒ Object
Returns the value of attribute asset_finder_class.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def asset_finder_class @asset_finder_class end |
#base_path ⇒ Object
Returns the value of attribute base_path.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def base_path @base_path end |
#cache_size ⇒ Object
Returns the value of attribute cache_size.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def cache_size @cache_size end |
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def cache_ttl @cache_ttl end |
#client_render_function ⇒ Object
Returns the value of attribute client_render_function.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def client_render_function @client_render_function end |
#component_paths ⇒ Object
Returns the value of attribute component_paths.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def component_paths @component_paths end |
#component_suffix ⇒ Object
Returns the value of attribute component_suffix.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def component_suffix @component_suffix end |
#key_transforms ⇒ Object
Returns the value of attribute key_transforms.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def key_transforms @key_transforms end |
#server_render_function ⇒ Object
Returns the value of attribute server_render_function.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def server_render_function @server_render_function end |
#should_server_render ⇒ Object
Returns the value of attribute should_server_render.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def should_server_render @should_server_render end |
#use_asset_pipeline ⇒ Object
Returns the value of attribute use_asset_pipeline.
19 20 21 |
# File 'lib/js_render/configuration.rb', line 19 def use_asset_pipeline @use_asset_pipeline end |