Class: DesignSystem::Generic::Builders::Table
- Defined in:
- lib/design_system/generic/builders/table.rb
Overview
This class is used to provide table builder.
Direct Known Subclasses
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_table(options = {}) {|@table| ... } ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/design_system/generic/builders/table.rb', line 8 def render_table( = {}) @table = ::DesignSystem::Components::Table.new yield @table content_tag(:div, **) do safe_buffer = ActiveSupport::SafeBuffer.new safe_buffer.concat(table_content) safe_buffer end end |