Class: UI::BreadcrumbListComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::BreadcrumbListComponent
- Includes:
- BreadcrumbListBehavior
- Defined in:
- app/view_components/ui/breadcrumb_list_component.rb
Overview
BreadcrumbListComponent - ViewComponent implementation
Container for breadcrumb items, rendered as an ordered list. Uses BreadcrumbListBehavior concern for shared styling logic.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ BreadcrumbListComponent
constructor
A new instance of BreadcrumbListComponent.
Methods included from BreadcrumbListBehavior
#breadcrumb_list_classes, #breadcrumb_list_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ BreadcrumbListComponent
Returns a new instance of BreadcrumbListComponent.
19 20 21 22 |
# File 'app/view_components/ui/breadcrumb_list_component.rb', line 19 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
24 25 26 27 28 |
# File 'app/view_components/ui/breadcrumb_list_component.rb', line 24 def call content_tag :ol, ** do content end end |