Class: Stencil::Template::State
- Inherits:
-
Object
- Object
- Stencil::Template::State
- Defined in:
- lib/stencil/template.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
- #get_template(path) ⇒ Object
-
#initialize(data, &file_opener) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(data, &file_opener) ⇒ State
Returns a new instance of State.
126 127 128 129 |
# File 'lib/stencil/template.rb', line 126 def initialize(data, &file_opener) @data = data @file_opener = file_opener end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
135 136 137 |
# File 'lib/stencil/template.rb', line 135 def data @data end |