Class: PandaCms::Admin::TabBarComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/panda_cms/admin/tab_bar_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tabs: []) ⇒ TabBarComponent

Returns a new instance of TabBarComponent.



8
9
10
# File 'app/components/panda_cms/admin/tab_bar_component.rb', line 8

def initialize(tabs: [])
  @tabs = tabs
end

Instance Attribute Details

#tabsObject (readonly)

Returns the value of attribute tabs.



6
7
8
# File 'app/components/panda_cms/admin/tab_bar_component.rb', line 6

def tabs
  @tabs
end