Class: UI::ContextMenuSeparatorComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
ContextMenuSeparatorBehavior
Defined in:
app/view_components/ui/context_menu_separator_component.rb

Overview

SeparatorComponent - ViewComponent implementation

Instance Method Summary collapse

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

#callObject



12
13
14
# File 'app/view_components/ui/context_menu_separator_component.rb', line 12

def call
   :div, "", **context_menu_separator_html_attributes.merge(@attributes)
end