Created
August 29, 2009 14:20
-
-
Save therealadam/177494 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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) # => [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment