Module: Stratify::Renderable::ClassMethods
- Defined in:
- lib/stratify/renderable.rb
Instance Method Summary collapse
- #default_template_format ⇒ Object
- #template(data = nil) ⇒ Object
- #template_format(format = nil) ⇒ Object
Instance Method Details
#default_template_format ⇒ Object
20 21 22 |
# File 'lib/stratify/renderable.rb', line 20 def default_template_format :erb end |
#template(data = nil) ⇒ Object
10 11 12 13 |
# File 'lib/stratify/renderable.rb', line 10 def template(data = nil) @template = data unless data.nil? @template end |
#template_format(format = nil) ⇒ Object
15 16 17 18 |
# File 'lib/stratify/renderable.rb', line 15 def template_format(format = nil) @template_format = format unless format.nil? @template_format || default_template_format end |