module Thor::Util
def self.namespace_from_thor_class(constant)
String:: If we receive Foo::Bar::Baz it returns "foo:bar:baz"
==== Returns
constant
def self.namespace_from_thor_class(constant) constant = constant.to_s.gsub(/^Thor::Sandbox::/, "") constant = snake_case(constant).squeeze(":") constant end