Class: ActionView::AbstractRenderer::RenderedCollection
Do not use. This class is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Inherits: | Object |
Defined in: | actionview/lib/action_view/renderer/abstract_renderer.rb |
Class Method Summary
Instance Attribute Summary
- #rendered_templates readonly
Instance Method Summary
Constructor Details
.new(rendered_templates, spacer) ⇒ RenderedCollection
# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 117
def initialize(rendered_templates, spacer) @rendered_templates = rendered_templates @spacer = spacer end
Class Method Details
.empty(format)
[ GitHub ]# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 111
def self.empty(format) EmptyCollection.new format end
Instance Attribute Details
#rendered_templates (readonly)
[ GitHub ]# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 115
attr_reader :rendered_templates
Instance Method Details
#body
[ GitHub ]# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 122
def body @rendered_templates.map(&:body).join(@spacer.body).html_safe end
#format
[ GitHub ]# File 'actionview/lib/action_view/renderer/abstract_renderer.rb', line 126
def format rendered_templates.first.format end