Module: Roda::RodaPlugins::Inversion::InstanceMethods
- Defined in:
- lib/roda/plugins/inversion.rb
Instance Method Summary collapse
-
#template(tmpl) ⇒ Object
Return a previously declared template object.
Instance Method Details
#template(tmpl) ⇒ Object
Return a previously declared template object.
145 146 147 148 149 150 |
# File 'lib/roda/plugins/inversion.rb', line 145 def template( tmpl ) template = self.class.template_map[ tmpl ] or raise ArgumentError, "no %p template registered!" % [ tmpl ] template.reload if template.changed? return template.dup end |