Class: Panda::Core::Admin::TabBarComponent
- Defined in:
- app/components/panda/core/admin/tab_bar_component.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#tabs ⇒ Object
readonly
Returns the value of attribute tabs.
Instance Method Summary collapse
-
#initialize(tabs: [].freeze, **attrs) ⇒ TabBarComponent
constructor
A new instance of TabBarComponent.
Constructor Details
#initialize(tabs: [].freeze, **attrs) ⇒ TabBarComponent
Returns a new instance of TabBarComponent.
7 8 9 10 |
# File 'app/components/panda/core/admin/tab_bar_component.rb', line 7 def initialize(tabs: [].freeze, **attrs) @tabs = tabs super(**attrs) end |
Instance Attribute Details
#tabs ⇒ Object (readonly)
Returns the value of attribute tabs.
12 13 14 |
# File 'app/components/panda/core/admin/tab_bar_component.rb', line 12 def tabs @tabs end |