Class: Vedeu::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/output/template.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#parseObject



11
12
13
# File 'lib/vedeu/output/template.rb', line 11

def parse
  ERB.new(load, nil, '-').result(binding)
end