class Voom::Presenters::SubCommandBase

Public Class Methods

banner(command, namespace = nil, subcommand = false) click to toggle source
subcommand_prefix() click to toggle source
# File lib/voom/presenters/cli.rb, line 11
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