Class: DesignSystem::Generic::Builders::SummaryList
- Includes:
- ActionView::Helpers::OutputSafetyHelper
- Defined in:
- lib/design_system/generic/builders/summary_list.rb
Direct Known Subclasses
DesignSystem::Govuk::Builders::SummaryList, Nhsuk::Builders::SummaryList
Instance Method Summary collapse
Methods inherited from Base
Methods included from Helpers::CssHelper
Methods included from Concerns::BrandDerivable
Constructor Details
This class inherits a constructor from DesignSystem::Generic::Builders::Base
Instance Method Details
#render_summary_list {|@summary_list| ... } ⇒ Object
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 |