Module: Roda::RodaPlugins::Component::ClassMethods
- Defined in:
- lib/roda/plugins/component.rb
Instance Method Summary collapse
- #component_opts ⇒ Object
-
#inherited(subclass) ⇒ Object
Copy the assets options into the subclass, duping them as necessary to prevent changes in the subclass affecting the parent class.
Instance Method Details
#component_opts ⇒ Object
174 175 176 |
# File 'lib/roda/plugins/component.rb', line 174 def component_opts opts[:component] end |
#inherited(subclass) ⇒ Object
Copy the assets options into the subclass, duping them as necessary to prevent changes in the subclass affecting the parent class.
168 169 170 171 172 |
# File 'lib/roda/plugins/component.rb', line 168 def inherited(subclass) super opts = component_opts.dup opts[:cache] = thread_safe_cache if opts[:cache] end |