Class: Railsboot::Dropdown::DividerComponent
- Inherits:
-
Component
- Object
- Component
- Railsboot::Dropdown::DividerComponent
- Defined in:
- app/components/railsboot/dropdown/divider_component.rb
Overview
ViewComponent: renders the divider block.
Instance Method Summary collapse
-
#initialize(**html_attributes) ⇒ DividerComponent
constructor
A new instance of DividerComponent.
Constructor Details
#initialize(**html_attributes) ⇒ DividerComponent
Returns a new instance of DividerComponent.
4 5 6 7 8 9 10 11 |
# File 'app/components/railsboot/dropdown/divider_component.rb', line 4 def initialize(**html_attributes) @html_attributes = html_attributes @html_attributes[:class] = class_names( "dropdown-divider", html_attributes.delete(:class) ) end |