class SubCommandBase
Public Class Methods
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