Class: Stencil::ViewHost::Renderer
- Inherits:
-
Object
- Object
- Stencil::ViewHost::Renderer
- Defined in:
- lib/stencil/view.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #go ⇒ Object
-
#initialize(data, capsule) ⇒ Renderer
constructor
A new instance of Renderer.
Constructor Details
#initialize(data, capsule) ⇒ Renderer
Returns a new instance of Renderer.
4 5 6 7 |
# File 'lib/stencil/view.rb', line 4 def initialize(data, capsule) @data = data @capsule = capsule end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
13 14 15 |
# File 'lib/stencil/view.rb', line 13 def data @data end |
Instance Method Details
#go ⇒ Object
9 10 11 |
# File 'lib/stencil/view.rb', line 9 def go instance_eval(&@capsule.block) end |