therealadam (owner)

Revisions

gist: 177494 Download_button fork
public
Public Clone URL: git://gist.github.com/177494.git
Embed All Files: show embed
blame.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module BlameTheCompiler
  
  def method_added(name)
    if rand(3) != 1
      undef_method(name)
    end
  end
  
end
 
class Foo
  extend BlameTheCompiler
  
  def happy
    'Happy!'
  end
  
end
 
(Foo.new.methods - Object.new.methods) # => []