Class: Grid::Row::RowComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Grid::Row::RowComponent
- Defined in:
- app/components/grid/row/row_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ RowComponent
constructor
A new instance of RowComponent.
Constructor Details
#initialize(**options) ⇒ RowComponent
Returns a new instance of RowComponent.
8 9 10 11 |
# File 'app/components/grid/row/row_component.rb', line 8 def initialize(**) @classes = [:classes] @styles = [:styles] end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/components/grid/row/row_component.rb', line 13 def call content_tag(:div, content, class: default_plus_passed_classes, style: @styles ) end |