Class: DsfrComponent::SkiplinkComponent
- Inherits:
-
Base
- Object
- Base
- DsfrComponent::SkiplinkComponent
- Defined in:
- app/components/dsfr_component/skiplink_component.rb
Instance Method Summary collapse
-
#initialize(label:, links:, html_attributes: {}) ⇒ SkiplinkComponent
constructor
A new instance of SkiplinkComponent.
Constructor Details
#initialize(label:, links:, html_attributes: {}) ⇒ SkiplinkComponent
Returns a new instance of SkiplinkComponent.
5 6 7 8 9 10 |
# File 'app/components/dsfr_component/skiplink_component.rb', line 5 def initialize(label:, links:, html_attributes: {}) @label = label @links = links super(html_attributes: html_attributes) end |