Class: ActionView::AbstractRenderer::RenderedTemplate
- Inherits:
-
Object
- Object
- ActionView::AbstractRenderer::RenderedTemplate
- Defined in:
- lib/action_view/renderer/abstract_renderer.rb
Overview
:nodoc:
Constant Summary collapse
- EMPTY_SPACER =
Struct.new(:body).new
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.
64 65 66 67 68 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 64 def initialize(body, layout, template) @body = body @layout = layout @template = template end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
62 63 64 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 62 def body @body end |
#layout ⇒ Object (readonly)
Returns the value of attribute layout.
62 63 64 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 62 def layout @layout end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
62 63 64 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 62 def template @template end |
Instance Method Details
#format ⇒ Object
70 71 72 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 70 def format template.format end |