Class: ActionView::AbstractRenderer::RenderedTemplate

Inherits:
Object
  • Object
show all
Defined in:
actionview/lib/action_view/renderer/abstract_renderer.rb

Overview

:nodoc:

Constant Summary collapse

EMPTY_SPACER =
Struct.new(:body).new

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, template) ⇒ RenderedTemplate

Returns a new instance of RenderedTemplate.


146
147
148
149
# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 146

def initialize(body, template)
  @body = body
  @template = template
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body


144
145
146
# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 144

def body
  @body
end

#templateObject (readonly)

Returns the value of attribute template


144
145
146
# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 144

def template
  @template
end

Instance Method Details

#formatObject


151
152
153
# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 151

def format
  template.format
end