Class: GovukComponent::Breadcrumbs
- Defined in:
- app/components/govuk_component/breadcrumbs.rb
Instance Attribute Summary collapse
-
#breadcrumbs ⇒ Object
Returns the value of attribute breadcrumbs.
Attributes included from Traits::CustomHtmlAttributes
Instance Method Summary collapse
-
#initialize(breadcrumbs:, classes: [], html_attributes: {}) ⇒ Breadcrumbs
constructor
A new instance of Breadcrumbs.
Methods inherited from Base
Methods included from Traits::CustomClasses
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 = end |
Instance Attribute Details
#breadcrumbs ⇒ Object
Returns the value of attribute breadcrumbs.
2 3 4 |
# File 'app/components/govuk_component/breadcrumbs.rb', line 2 def @breadcrumbs end |