Class: GovukComponent::Breadcrumbs

Inherits:
Base
  • Object
show all
Defined in:
app/components/govuk_component/breadcrumbs.rb

Instance Attribute Summary collapse

Attributes included from Traits::CustomHtmlAttributes

#html_attributes

Instance Method Summary collapse

Methods inherited from Base

wrap_slot

Methods included from Traits::CustomClasses

#classes

Constructor Details

#initialize(breadcrumbs:, classes: [], html_attributes: {}) ⇒ Breadcrumbs

Returns a new instance of Breadcrumbs.



4
5
6
7
8
# File 'app/components/govuk_component/breadcrumbs.rb', line 4

def initialize(breadcrumbs:, classes: [], html_attributes: {})
  super(classes: classes, html_attributes: html_attributes)

  @breadcrumbs = breadcrumbs
end

Instance Attribute Details

Returns the value of attribute breadcrumbs.



2
3
4
# File 'app/components/govuk_component/breadcrumbs.rb', line 2

def breadcrumbs
  @breadcrumbs
end