Class: Pulse::Breadcrumbs
- Inherits:
-
Component
- Object
- Component
- Pulse::Breadcrumbs
- Defined in:
- app/components/pulse/breadcrumbs.rb
Overview
Renders a breadcrumb navigation list
Instance Method Summary collapse
-
#initialize(**system_arguments) ⇒ Breadcrumbs
constructor
A new instance of Breadcrumbs.
- #render? ⇒ Boolean
Constructor Details
#initialize(**system_arguments) ⇒ Breadcrumbs
Returns a new instance of Breadcrumbs.
8 9 10 11 |
# File 'app/components/pulse/breadcrumbs.rb', line 8 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = :nav end |
Instance Method Details
#render? ⇒ Boolean
13 14 15 |
# File 'app/components/pulse/breadcrumbs.rb', line 13 def render? items.any? end |