Class: UI::ContextMenuSeparatorComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::ContextMenuSeparatorComponent
- Includes:
- ContextMenuSeparatorBehavior
- Defined in:
- app/view_components/ui/context_menu_separator_component.rb
Overview
SeparatorComponent - ViewComponent implementation
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ ContextMenuSeparatorComponent
constructor
A new instance of ContextMenuSeparatorComponent.
Methods included from ContextMenuSeparatorBehavior
#context_menu_separator_classes, #context_menu_separator_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ContextMenuSeparatorComponent
Returns a new instance of ContextMenuSeparatorComponent.
7 8 9 10 |
# File 'app/view_components/ui/context_menu_separator_component.rb', line 7 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'app/view_components/ui/context_menu_separator_component.rb', line 12 def call content_tag :div, "", **.merge(@attributes) end |