The Ruby Programming Language [mirror]. Contribute to ruby/ruby development by creating an account on GitHub. Literal MatchesMuch like a regular case statement, you can perform literal matches: case 0 in 0 then true else false end # => trueIn these cases it would probably be best to use when instead. The difference is that if there’s no match it’s going to raise a NoMatchingPattern error rather th