Created
January 28, 2009 21:56
-
-
Save ryanking/54216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this in .irbrc and you can open the files that define constants | |
def mate mod | |
file = ActiveSupport::Dependencies.search_for_file(ActiveSupport::Dependencies.qualified_name_for(Kernel, mod).underscore) | |
`mate #{file}` | |
nil | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment