Class: Rubycli::CLI::CommandEntry
- Inherits:
-
Struct
- Object
- Struct
- Rubycli::CLI::CommandEntry
- Defined in:
- lib/rubycli/cli.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#category ⇒ Object
Returns the value of attribute category.
-
#command ⇒ Object
Returns the value of attribute command.
-
#method ⇒ Object
Returns the value of attribute method.
Instance Method Summary collapse
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases
7 8 9 |
# File 'lib/rubycli/cli.rb', line 7 def aliases @aliases end |
#category ⇒ Object
Returns the value of attribute category
7 8 9 |
# File 'lib/rubycli/cli.rb', line 7 def category @category end |
#command ⇒ Object
Returns the value of attribute command
7 8 9 |
# File 'lib/rubycli/cli.rb', line 7 def command @command end |
#method ⇒ Object
Returns the value of attribute method
7 8 9 |
# File 'lib/rubycli/cli.rb', line 7 def method @method end |
Instance Method Details
#all_commands ⇒ Object
8 9 10 |
# File 'lib/rubycli/cli.rb', line 8 def all_commands [command] + aliases end |