Class: CBF::Convertor

Inherits:
Object
  • Object
show all
Defined in:
lib/cbf.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template) ⇒ Convertor

Returns a new instance of Convertor.



67
68
69
# File 'lib/cbf.rb', line 67

def initialize(template)
  @template = template
end

Instance Attribute Details

#templateObject (readonly)

Returns the value of attribute template.



65
66
67
# File 'lib/cbf.rb', line 65

def template
  @template
end

Instance Method Details

#to(format) ⇒ Object



71
72
73
# File 'lib/cbf.rb', line 71

def to(format)
  CBF.generate(format, @template)
end