Class: JsFromRoutes::TemplateConfig
- Inherits:
-
Object
- Object
- JsFromRoutes::TemplateConfig
- Defined in:
- lib/js_from_routes/generator.rb
Instance Attribute Summary collapse
-
#cache_key ⇒ Object
readonly
Returns the value of attribute cache_key.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#helpers ⇒ Object
readonly
Returns the value of attribute helpers.
Instance Method Summary collapse
-
#initialize(cache_key:, filename:, helpers: nil) ⇒ TemplateConfig
constructor
A new instance of TemplateConfig.
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_key ⇒ Object (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 |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
158 159 160 |
# File 'lib/js_from_routes/generator.rb', line 158 def filename @filename end |
#helpers ⇒ Object (readonly)
Returns the value of attribute helpers.
158 159 160 |
# File 'lib/js_from_routes/generator.rb', line 158 def helpers @helpers end |