Class: Suricate::Template
- Inherits:
-
Object
- Object
- Suricate::Template
- Defined in:
- lib/suricate/template/template.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Template
constructor
A new instance of Template.
- #render ⇒ Object
Constructor Details
#initialize(path) ⇒ Template
Returns a new instance of Template.
3 4 5 |
# File 'lib/suricate/template/template.rb', line 3 def initialize(path) @path = path end |
Instance Method Details
#render ⇒ Object
7 8 9 |
# File 'lib/suricate/template/template.rb', line 7 def render File.read(@path) end |