Created
January 25, 2011 12:56
-
-
Save lazyatom/794876 to your computer and use it in GitHub Desktop.
Take me to the definition of a method in TextMate
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 your .irbrc | |
class Object | |
def __edit_method(method_name, object=self) | |
method = object.method(method_name.to_sym) | |
`open txmt://open?url=file://#{method.__file__}&line=#{method.__line__}` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment