Class: Satis::Breadcrumbs::Crumb
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Satis::Breadcrumbs::Crumb
- Defined in:
- app/components/satis/breadcrumbs/component.rb
Instance Attribute Summary collapse
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(path: nil, title: nil, icon: nil) ⇒ Crumb
constructor
A new instance of Crumb.
Constructor Details
#initialize(path: nil, title: nil, icon: nil) ⇒ Crumb
Returns a new instance of Crumb.
8 9 10 11 12 |
# File 'app/components/satis/breadcrumbs/component.rb', line 8 def initialize(path: nil, title: nil, icon: nil) @path = path @title = title @icon = icon end |
Instance Attribute Details
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
6 7 8 |
# File 'app/components/satis/breadcrumbs/component.rb', line 6 def icon @icon end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'app/components/satis/breadcrumbs/component.rb', line 6 def path @path end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'app/components/satis/breadcrumbs/component.rb', line 6 def title @title end |