Method: SubCommand.subcommand_prefix

Defined in:
lib/cnvrg/cli/subcommand.rb

.subcommand_prefixObject



17
18
19
# File 'lib/cnvrg/cli/subcommand.rb', line 17

def self.subcommand_prefix
  self.name.gsub(%r{.*::}, '').gsub(%r{^[A-Z]}) {|match| match[0].downcase}.gsub(%r{[A-Z]}) {|match| "-#{match[0].downcase}"}
end