Class: Convoy::Formatter::GlobalCommand
- Defined in:
- lib/convoy/formatter/global_command.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(setup) ⇒ GlobalCommand
constructor
A new instance of GlobalCommand.
- #summary ⇒ Object
Methods inherited from Command
#aliases, #child_commands, #has_aliases?, #has_child_commands?, #name_with_aliases, #outline, #requires_arguments?, #script_name, #usage
Constructor Details
#initialize(setup) ⇒ GlobalCommand
Returns a new instance of GlobalCommand.
4 5 6 |
# File 'lib/convoy/formatter/global_command.rb', line 4 def initialize(setup) super(:global, setup, []) end |
Instance Method Details
#description ⇒ Object
12 13 14 |
# File 'lib/convoy/formatter/global_command.rb', line 12 def description @description ||= setup.description_for(context) || "" end |
#summary ⇒ Object
8 9 10 |
# File 'lib/convoy/formatter/global_command.rb', line 8 def summary @summary ||= setup.summary_for(context) || "" end |