Class: TabComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/railwind/generators/templates/tabs/tab_component.rb

Instance Method Summary collapse

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