Class: Aardi::Template
- Inherits:
-
Object
- Object
- Aardi::Template
- Defined in:
- lib/aardi/template.rb
Overview
:reek:DataClump
Instance Method Summary collapse
-
#initialize(path) ⇒ Template
constructor
A new instance of Template.
-
#render(src) ⇒ Object
:reek:TooManyStatements.
Constructor Details
#initialize(path) ⇒ Template
Returns a new instance of Template.
6 7 8 9 10 |
# File 'lib/aardi/template.rb', line 6 def initialize(path) @path = path @content = File.read(path).strip @dom = Nokogiri::HTML5.parse(@content) end |