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.
-
#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.
-
#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
Returns a new instance of Configuration.
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/js_render/configuration.rb', line 28 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 @should_server_render = true 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 |
#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 |
#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 |