Method: GovukComponent::TabComponent#initialize

Defined in:
app/components/govuk_component/tab_component.rb

#initialize(title: 'Contents', id: nil, classes: [], html_attributes: {}) ⇒ TabComponent

Returns a new instance of TabComponent.



8
9
10
11
12
13
# File 'app/components/govuk_component/tab_component.rb', line 8

def initialize(title: 'Contents', id: nil, classes: [], html_attributes: {})
  @title = title
  @id    = id

  super(classes:, html_attributes:)
end