Class: Rubycli::CLI::CommandEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycli/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aliasesObject

Returns the value of attribute aliases

Returns:

  • (Object)

    the current value of aliases



7
8
9
# File 'lib/rubycli/cli.rb', line 7

def aliases
  @aliases
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



7
8
9
# File 'lib/rubycli/cli.rb', line 7

def category
  @category
end

#commandObject

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



7
8
9
# File 'lib/rubycli/cli.rb', line 7

def command
  @command
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



7
8
9
# File 'lib/rubycli/cli.rb', line 7

def method
  @method
end

Instance Method Details

#all_commandsObject



8
9
10
# File 'lib/rubycli/cli.rb', line 8

def all_commands
  [command] + aliases
end