Ruby Hash Trickery

Ilya Grigorick put up a pretty cool pastie showing a neat hack to make Ruby hashes raise errors with invalid keys:

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Facebook Facebook Post to Reddit Reddit This Post


Related posts:

  1. Ruby Interpreter Comparison

blog comments powered by Disqus