Method: FixedWidth::Definition#template
- Defined in:
- lib/fixed_width/definition.rb
#template(name, options = {}) {|section| ... } ⇒ Object
21 22 23 24 25 |
# File 'lib/fixed_width/definition.rb', line 21 def template(name, ={}, &block) section = FixedWidth::Section.new(name, .merge()) yield(section) @templates[name] = section end |