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.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(body, template) ⇒ RenderedTemplate
constructor
A new instance of RenderedTemplate.
Constructor Details
#initialize(body, template) ⇒ RenderedTemplate
Returns a new instance of RenderedTemplate.
144 145 146 147 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 144 def initialize(body, template) @body = body @template = template end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
142 143 144 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 142 def body @body end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
142 143 144 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 142 def template @template end |
Instance Method Details
#format ⇒ Object
149 150 151 |
# File 'lib/action_view/renderer/abstract_renderer.rb', line 149 def format template.format end |