module

Bundler::Thor::Util

This module holds several utilities:

1) Methods to convert thor namespaces to constants and vice-versa.

Bundler::Thor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> "foo:bar:baz"

2) Loading thor files and sandboxing:

Bundler::Thor::Util.load_thorfile("~/.thor/foo")

Files

  • lib/bundler/vendor/thor/lib/thor/util.rb