Class: Brainzlab::Components::Table
- Defined in:
- lib/brainzlab/components/table.rb
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Table
constructor
A new instance of Table.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(**attrs) ⇒ Table
Returns a new instance of Table.
6 7 8 |
# File 'lib/brainzlab/components/table.rb', line 6 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
10 11 12 13 14 |
# File 'lib/brainzlab/components/table.rb', line 10 def view_template(&) div(class: 'table-wrapper') do table(class: classes('table', @attrs[:class]), **@attrs.except(:class), &) end end |