module Thor::Util
def find_by_namespace(namespace)
namespace
==== Parameters
Receives a namespace and search for it in the Thor::Base subclasses.
def find_by_namespace(namespace) namespace = "default#{namespace}" if namespace.empty? || namespace =~ /^:/ Thor::Base.subclasses.detect { |klass| klass.namespace == namespace } end