Log in to comment:
root.b-tree.org

Recent Posts

Ruby "feature"

If you feel like breaking ruby:

1
2
3
4
5
class << nil
  def nil?
    false
  end
end
Sep 21, 2008 07:53 AM Steven says:

What're you doing here?

Sep 21, 2008 09:19 AM cygnus says:

Essentially this tells Ruby that "nil is not nil," thus causing the interpreter to eventually crash.

You must log in with OpenID to post a comment. It's quick and easy!