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

Instance Method Summary collapse

Instance Attribute Details

#expanderProc

You may alternately set the expander block using this accessor.

Returns:

  • (Proc)


124
125
126
# File 'lib/toys/template.rb', line 124

def expander
  @expander
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 to_expand(&block)
  self.expander = block
end