From: Ryan Davis Date: 2011-08-15T18:07:18+09:00 Subject: Re: How to use "case" to match class names? (=== not so funny) On Aug 14, 2011, at 09:26 , Chris White wrote: > def ===(other) > @holder.each { | klass | > return true if klass == other > } > false > end def === o @holder.any? { |k| k == o } end