Best scala questions in June 2011

Is there a ruby equivalent to the Scala Option?

6 votes

How do I model an optional value in ruby? Scala has Option[], which is what I'm looking for in ruby.

There's no equivalent in the standard library. You have to define your own. See this article.