Class: Vedeu::Template
- Inherits:
-
Object
- Object
- Vedeu::Template
- Defined in:
- lib/vedeu/output/template.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object, path) ⇒ Template
constructor
A new instance of Template.
- #parse ⇒ Object
Constructor Details
#initialize(object, path) ⇒ Template
Returns a new instance of Template.
7 8 9 |
# File 'lib/vedeu/output/template.rb', line 7 def initialize(object, path) @object, @path = object, path end |
Class Method Details
.parse(object, path) ⇒ Object
3 4 5 |
# File 'lib/vedeu/output/template.rb', line 3 def self.parse(object, path) new(object, path).parse end |
Instance Method Details
#parse ⇒ Object
11 12 13 |
# File 'lib/vedeu/output/template.rb', line 11 def parse ERB.new(load, nil, '-').result(binding) end |