Class: RubyUI::CommandGroup
- Defined in:
- lib/ruby_ui/command/command_group.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(title: nil, **attrs) ⇒ CommandGroup
constructor
A new instance of CommandGroup.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(title: nil, **attrs) ⇒ CommandGroup
Returns a new instance of CommandGroup.
5 6 7 8 |
# File 'lib/ruby_ui/command/command_group.rb', line 5 def initialize(title: nil, **attrs) @title = title super(**attrs) end |
Instance Method Details
#view_template(&block) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ruby_ui/command/command_group.rb', line 10 def view_template(&block) div(**attrs) do render_header if @title render_items(&block) end end |