Class: UI::MenubarSeparatorComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::MenubarSeparatorComponent
- Includes:
- MenubarSeparatorBehavior
- Defined in:
- app/view_components/ui/menubar_separator_component.rb
Overview
SeparatorComponent - ViewComponent implementation
Visual separator between menu items.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ MenubarSeparatorComponent
constructor
A new instance of MenubarSeparatorComponent.
Methods included from MenubarSeparatorBehavior
#menubar_separator_classes, #menubar_separator_data_attributes, #menubar_separator_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ MenubarSeparatorComponent
Returns a new instance of MenubarSeparatorComponent.
12 13 14 15 |
# File 'app/view_components/ui/menubar_separator_component.rb', line 12 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'app/view_components/ui/menubar_separator_component.rb', line 17 def call content_tag :div, "", **.deep_merge(@attributes) end |