From: Michael Campbell Date: 2004-06-14T02:08:51+09:00 Subject: Re: String#== On Mon, 14 Jun 2004 01:20:16 +0900, Charles Mills wrote: > > String#== returns nil when the object being compared does not have a > "to_str" method. > For example: > irb> "hey" == 1 > => nil > Is that correct? I'm in no way authoritative, but it makes sense to me. If you're trying to see if a String is "equal" to something that cant be converted to a string, 'nil' (as false) seems logical.