Class: JsFromRoutes::TemplateConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/js_from_routes/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cache_key:, filename:, helpers: nil) ⇒ TemplateConfig

Returns a new instance of TemplateConfig.



160
161
162
163
164
# File 'lib/js_from_routes/generator.rb', line 160

def initialize(cache_key:, filename:, helpers: nil)
  @cache_key = cache_key
  @filename = filename
  @helpers = helpers
end

Instance Attribute Details

#cache_keyObject (readonly)

Returns the value of attribute cache_key.



158
159
160
# File 'lib/js_from_routes/generator.rb', line 158

def cache_key
  @cache_key
end

#filenameObject (readonly)

Returns the value of attribute filename.



158
159
160
# File 'lib/js_from_routes/generator.rb', line 158

def filename
  @filename
end

#helpersObject (readonly)

Returns the value of attribute helpers.



158
159
160
# File 'lib/js_from_routes/generator.rb', line 158

def helpers
  @helpers
end