Skip to content

Instantly share code, notes, and snippets.

@therealadam
Created August 29, 2009 14:20
Show Gist options
  • Save therealadam/177494 to your computer and use it in GitHub Desktop.
Save therealadam/177494 to your computer and use it in GitHub Desktop.
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