From: Phrogz Date: 2006-10-28T00:20:22+09:00 Subject: Re: nil.to_s != "nil" Eero Saynatkari wrote: > Is it possible to change NilClass#to_s to return "nil" > rather than "" since "" != nil? 1) #to_s should always return a string. 2) Any string representation will always be a truth value. The same situation exists for false: !!false.to_s #=> true You are correct that "" != nil, but "nil" != nil also. What are you really trying to achieve? And, did you know that nil.inspect yields "nil"?