Skip to content

Instantly share code, notes, and snippets.

@trapd00r
Created April 23, 2011 06:08
Show Gist options
  • Save trapd00r/938384 to your computer and use it in GitHub Desktop.
Save trapd00r/938384 to your computer and use it in GitHub Desktop.
[scp1@wiki ~]$ ri Rake
Rake
------------------------------------------------------------------------------
Also found in:
gem rake-0.8.7
[scp1@wiki ~]$ ri String
String < Object
(from gem rake-0.8.7)
------------------------------------------------------------------------------
User defined methods to be added to String.
------------------------------------------------------------------------------
Instance methods:
ext
pathmap
pathmap_explode
pathmap_partial
pathmap_replace
[scp1@wiki ~]$ ri Thor::Util
Thor::Util
(from gem bundler-1.0.12)
------------------------------------------------------------------------------
This module holds several utilities:
1) Methods to convert thor namespaces to constants and vice-versa.
Thor::Utils.namespace_from_thor_class(Foo::Bar::Baz) #=> "foo:bar:baz"
2) Loading thor files and sandboxing:
Thor::Utils.load_thorfile("~/.thor/foo")
------------------------------------------------------------------------------
Class methods:
camel_case
find_by_namespace
find_class_and_task_by_namespace
globs_for
load_thorfile
namespace_from_thor_class
namespaces_in_content
ruby_command
snake_case
thor_classes_in
thor_root
thor_root_glob
user_home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment