Class: Pulse::Breadcrumbs

Inherits:
Component
  • Object
show all
Defined in:
app/components/pulse/breadcrumbs.rb

Overview

Renders a breadcrumb navigation list

Instance Method Summary collapse

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

Returns:

  • (Boolean)


13
14
15
# File 'app/components/pulse/breadcrumbs.rb', line 13

def render?
  items.any?
end