Class: TabComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- TabComponent
- Defined in:
- lib/railwind/generators/templates/tabs/tab_component.rb
Instance Method Summary collapse
-
#initialize(id:, tabs:) ⇒ TabComponent
constructor
A new instance of TabComponent.
Constructor Details
#initialize(id:, tabs:) ⇒ TabComponent
Returns a new instance of TabComponent.
2 3 4 5 |
# File 'lib/railwind/generators/templates/tabs/tab_component.rb', line 2 def initialize(id:, tabs:) @id = id @tabs = tabs end |