Class: Troo::Template
- Inherits:
-
Object
- Object
- Troo::Template
- Includes:
- DecoratorHelpers
- Defined in:
- lib/troo/presentation/template.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object, path) ⇒ Object
constructor
[].
-
#parse ⇒ Object
[].
Methods included from DecoratorHelpers
Constructor Details
#initialize(object, path) ⇒ Object
Returns [].
17 18 19 |
# File 'lib/troo/presentation/template.rb', line 17 def initialize(object, path) @object, @path = object, path end |
Class Method Details
.parse(object, path) ⇒ Object
Returns [].
9 10 11 |
# File 'lib/troo/presentation/template.rb', line 9 def parse(object, path) new(object, path).parse end |
Instance Method Details
#parse ⇒ Object
Returns [].
22 23 24 |
# File 'lib/troo/presentation/template.rb', line 22 def parse ERB.new(load, nil, '-').result(binding) end |