From: Brian Candler Date: 2010-08-23T04:53:47+09:00 Subject: Re: case and class I think of === as meaning 'matches' rather than 'equals'. This is especially useful as in case str when /^foo/ ... do something when /^bar/ ... something else end For classes, you have case obj when String ... when Integer ... end -- Posted via http://www.ruby-forum.com/.