Class: Voom::Presenters::DSL::Components::TabBar
- Defined in:
- lib/voom/presenters/dsl/components/tab_bar.rb
Defined Under Namespace
Classes: Tab
Instance Attribute Summary collapse
-
#tabs ⇒ Object
readonly
Returns the value of attribute tabs.
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ TabBar
constructor
A new instance of TabBar.
- #tab(label, **attribs, &block) ⇒ Object
Methods inherited from Base
Methods included from Pluggable
#include_plugins, #plugin, #plugin_module
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ TabBar
Returns a new instance of TabBar.
8 9 10 11 12 |
# File 'lib/voom/presenters/dsl/components/tab_bar.rb', line 8 def initialize(**attribs_, &block) super(type: :tab_bar, **attribs_, &block) @tabs = [] end |
Instance Attribute Details
#tabs ⇒ Object (readonly)
Returns the value of attribute tabs.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/tab_bar.rb', line 6 def tabs @tabs end |