Class: PandaCms::Admin::TabBarComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- PandaCms::Admin::TabBarComponent
- Defined in:
- app/components/panda_cms/admin/tab_bar_component.rb
Instance Attribute Summary collapse
-
#tabs ⇒ Object
readonly
Returns the value of attribute tabs.
Instance Method Summary collapse
-
#initialize(tabs: []) ⇒ TabBarComponent
constructor
A new instance of TabBarComponent.
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
#tabs ⇒ Object (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 |