-
-
Save nogweii/215105 to your computer and use it in GitHub Desktop.
Awesome l33t method listings. Requires http://github.com/oggy/looksee/tree/master
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
require 'rubygems' | |
require 'looksee' | |
module Kernel | |
alias_method :orig_methods, :methods | |
def methods(*args) | |
if caller.first =~ /\(irb\):\d+:in `irb_binding'/ | |
Looksee.lookup_path(self, *args) | |
else | |
orig_methods | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment