Class: Renderer::Template
Defined Under Namespace
Classes: Bind
Instance Method Summary collapse
-
#initialize(path) ⇒ Template
constructor
A new instance of Template.
- #render(bin) ⇒ Object
Constructor Details
#initialize(path) ⇒ Template
Returns a new instance of Template.
26 27 28 29 |
# File 'lib/renderer/template.rb', line 26 def initialize(path) @template = ERB.new(File.read(path)) @template.filename = path.to_s end |