Class: Command
- Inherits:
-
Object
- Object
- Command
- Includes:
- Singleton
- Defined in:
- lib/get/subcommand/command.rb
Overview
Base class for (sub)commands.
Direct Known Subclasses
Changelog, Commit, Complete, Describe, DescribeDocker, Get, Init, License, Tree
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#option_parser ⇒ Object
readonly
Returns the value of attribute option_parser.
-
#subcommands ⇒ Object
readonly
Returns the value of attribute subcommands.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
26 27 28 |
# File 'lib/get/subcommand/command.rb', line 26 def action @action end |
#description ⇒ Object
Returns the value of attribute description.
26 27 28 |
# File 'lib/get/subcommand/command.rb', line 26 def description @description end |
#option_parser ⇒ Object
Returns the value of attribute option_parser.
26 27 28 |
# File 'lib/get/subcommand/command.rb', line 26 def option_parser @option_parser end |
#subcommands ⇒ Object
Returns the value of attribute subcommands.
26 27 28 |
# File 'lib/get/subcommand/command.rb', line 26 def subcommands @subcommands end |
#usage ⇒ Object
Returns the value of attribute usage.
26 27 28 |
# File 'lib/get/subcommand/command.rb', line 26 def usage @usage end |