Class: DesignSystem::Generic::Builders::SummaryList

Inherits:
Base
  • Object
show all
Includes:
ActionView::Helpers::OutputSafetyHelper
Defined in:
lib/design_system/generic/builders/summary_list.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Helpers::CssHelper

#css_class_options_merge

Methods included from Concerns::BrandDerivable

#brand

Constructor Details

This class inherits a constructor from DesignSystem::Generic::Builders::Base

Instance Method Details

#render_summary_list {|@summary_list| ... } ⇒ Object

Yields:

  • (@summary_list)


9
10
11
12
13
14
15
16
17
# File 'lib/design_system/generic/builders/summary_list.rb', line 9

def render_summary_list
  @summary_list = ::DesignSystem::Components::SummaryList.new
  yield @summary_list

  safe_buffer = ActiveSupport::SafeBuffer.new
  safe_buffer.concat(render_rows)

  safe_buffer
end