scrooloose (owner)

Forks

Revisions

gist: 213779 Download_button fork
public
Description:
make Foo.methods more awesome
Public Clone URL: git://gist.github.com/213779.git
Embed All Files: show embed
irbrc_hax0r.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rubygems'
require 'looksee/shortcuts'
module Kernel
  alias_method :orig_methods, :methods
 
  def methods(*args)
    if caller.first =~ /\(irb\):\d+:in `irb_binding'/
      lp(self, *args)
    else
      orig_methods
    end
  end
end