Class: JsRender::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/js_render/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



26
27
28
29
30
31
32
33
# File 'lib/js_render/configuration.rb', line 26

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
end

Instance Attribute Details

#base_pathObject

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_functionObject

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_pathsObject

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_suffixObject

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_functionObject

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

#use_asset_pipelineObject

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