MAmatthewmacleod·Nov 26, 2013
Ruby's case statements are super-awesome, and I constantly find myself longing for similar sugar elsewhere. Obviously it's more useful in a duck-typed language.
RubySpec, for those who aren't familiar with it, is an attempt to write an executable specification for the language. Ruby's definitely suffered from not having this in the past. https://github.com/rubyspec/rubyspec/ and specifically case statement spec at https://github.com/rubyspec/rubyspec/blob/master/language/ca...
In The most voted Ruby question on Stack Overflow