Module: Toys::Template::ClassMethods
- Defined in:
- lib/toys/template.rb
Overview
Class methods that will be added to a template class.
Instance Attribute Summary collapse
-
#expander ⇒ Proc
You may alternately set the expander block using this accessor.
Instance Method Summary collapse
-
#to_expand(&block) ⇒ Object
Provide the block that implements the template.
Instance Attribute Details
#expander ⇒ Proc
You may alternately set the expander block using this accessor.
124 125 126 |
# File 'lib/toys/template.rb', line 124 def end |
Instance Method Details
#to_expand(&block) ⇒ Object
Provide the block that implements the template.
116 117 118 |
# File 'lib/toys/template.rb', line 116 def (&block) self. = block end |