Class: Git::Switcher::Submenu
- Inherits:
-
Struct
- Object
- Struct
- Git::Switcher::Submenu
- Defined in:
- lib/git/switcher/menu.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#menu_items ⇒ Object
Returns the value of attribute menu_items.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
4 5 6 |
# File 'lib/git/switcher/menu.rb', line 4 def label @label end |
#menu_items ⇒ Object
Returns the value of attribute menu_items
4 5 6 |
# File 'lib/git/switcher/menu.rb', line 4 def @menu_items end |
Instance Method Details
#to_s ⇒ Object
5 6 7 8 |
# File 'lib/git/switcher/menu.rb', line 5 def to_s header = Rainbow(label).steelblue "\n\t#{header}\n\n" + .join("\n") end |