Class: Props::RenderedTemplate
- Inherits:
-
Object
- Object
- Props::RenderedTemplate
- Defined in:
- lib/props_template/extensions/partial_renderer.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#layout ⇒ Object
readonly
Returns the value of attribute layout.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(body, layout, template) ⇒ RenderedTemplate
constructor
A new instance of RenderedTemplate.
Constructor Details
#initialize(body, layout, template) ⇒ RenderedTemplate
Returns a new instance of RenderedTemplate.
7 8 9 10 11 |
# File 'lib/props_template/extensions/partial_renderer.rb', line 7 def initialize(body, layout, template) @body = body @layout = layout @template = template end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/props_template/extensions/partial_renderer.rb', line 5 def body @body end |
#layout ⇒ Object (readonly)
Returns the value of attribute layout.
5 6 7 |
# File 'lib/props_template/extensions/partial_renderer.rb', line 5 def layout @layout end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
5 6 7 |
# File 'lib/props_template/extensions/partial_renderer.rb', line 5 def template @template end |
Instance Method Details
#format ⇒ Object
13 14 15 |
# File 'lib/props_template/extensions/partial_renderer.rb', line 13 def format template.format end |