Method: Inch::CLI::Command::Base#name

Defined in:
lib/inch/cli/command/base.rb

#nameString

Returns the name of the command by which it is referenced in the command list

Returns:

  • (String)


79
80
81
82
83
# File 'lib/inch/cli/command/base.rb', line 79

def name
  CommandParser.commands.each do |name, klass|
    return name if klass == self.class
  end
end