Class: Practical::Views::Navigation::BreadcrumbItemComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Practical::Views::Navigation::BreadcrumbItemComponent
- Defined in:
- app/components/practical/views/navigation/breadcrumb_item_component.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options: {}) ⇒ BreadcrumbItemComponent
constructor
A new instance of BreadcrumbItemComponent.
Constructor Details
#initialize(options: {}) ⇒ BreadcrumbItemComponent
Returns a new instance of BreadcrumbItemComponent.
7 8 9 |
# File 'app/components/practical/views/navigation/breadcrumb_item_component.rb', line 7 def initialize(options: {}) self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'app/components/practical/views/navigation/breadcrumb_item_component.rb', line 5 def end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/components/practical/views/navigation/breadcrumb_item_component.rb', line 12 def call tag.(**mix({}, )) { safe_join([ (prefix if prefix?), content ]) } end |