Class: Suricate::Template

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

Instance Method Summary collapse

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

#renderObject



7
8
9
# File 'lib/suricate/template/template.rb', line 7

def render
  File.read(@path)
end