Skip to content

Instantly share code, notes, and snippets.

@nogweii
Forked from scrooloose/irbrc_hax0r.rb
Created October 21, 2009 13:36
Show Gist options
  • Save nogweii/215105 to your computer and use it in GitHub Desktop.
Save nogweii/215105 to your computer and use it in GitHub Desktop.
Awesome l33t method listings. Requires http://github.com/oggy/looksee/tree/master
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