class SubCommandBase

Public Class Methods

banner(command, _namespace = nil, _subcommand = false) click to toggle source
subcommand_prefix() click to toggle source
# File lib/wanda/sub_command_base.rb, line 8
def self.subcommand_prefix
  name.gsub(/.*::/, '').gsub(/^[A-Z]/) { |match| match[0].downcase }.gsub(/[A-Z]/) { |match| "-#{match[0].downcase}" }
end