Class: UI::ItemSeparator
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::ItemSeparator
- Includes:
- ItemSeparatorBehavior
- Defined in:
- app/components/ui/item_separator.rb
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ ItemSeparator
constructor
A new instance of ItemSeparator.
- #view_template(&block) ⇒ Object
Methods included from ItemSeparatorBehavior
#item_separator_classes, #item_separator_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ItemSeparator
Returns a new instance of ItemSeparator.
6 7 8 9 |
# File 'app/components/ui/item_separator.rb', line 6 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
11 12 13 |
# File 'app/components/ui/item_separator.rb', line 11 def view_template(&block) hr(**item_separator_html_attributes, &block) end |