Method: FixedWidth::Definition#template

Defined in:
lib/fixed_width/definition.rb

#template(name, options = {}) {|section| ... } ⇒ Object

Yields:



21
22
23
24
25
# File 'lib/fixed_width/definition.rb', line 21

def template(name, options={}, &block)
  section = FixedWidth::Section.new(name, @options.merge(options))
  yield(section)
  @templates[name] = section
end