lib/quickl/naming.rb
def module2command(mod)
      case mod
        when Module
          module2command(RubyTools::class_unqualified_name(mod))
        when String
          mod.gsub(/[A-Z]/){|x| "-#{x.downcase}"}[1..-1]
        when Symbol
          module2command(mod.to_s).to_sym
        else
          raise ArgumentError, "Invalid module argument #{mod.class}"
      end
    end
def module2command(mod)
      case mod
        when Module
          module2command(RubyTools::class_unqualified_name(mod))
        when String
          mod.gsub(/[A-Z]/){|x| "-#{x.downcase}"}[1..-1]
        when Symbol
          module2command(mod.to_s).to_sym
        else
          raise ArgumentError, "Invalid module argument #{mod.class}"
      end
    end
Converts a module name to a command name. Implements the
 following conversions:

     Hello -> hello
     HelloWorld -> hello-world

 This method is part of Quickl's private interface even
 if its effect are considered public.