Class: UI::BreadcrumbItemComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::BreadcrumbItemComponent
- Includes:
- BreadcrumbItemBehavior
- Defined in:
- app/view_components/ui/breadcrumb_item_component.rb
Overview
BreadcrumbItemComponent - ViewComponent implementation
Individual breadcrumb entry within the breadcrumb list. Uses BreadcrumbItemBehavior concern for shared styling logic.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ BreadcrumbItemComponent
constructor
A new instance of BreadcrumbItemComponent.
Methods included from BreadcrumbItemBehavior
#breadcrumb_item_classes, #breadcrumb_item_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ BreadcrumbItemComponent
Returns a new instance of BreadcrumbItemComponent.
19 20 21 22 |
# File 'app/view_components/ui/breadcrumb_item_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_item_component.rb', line 24 def call content_tag :li, ** do content end end |