From: Yossef Mendelssohn Date: 2008-09-23T13:57:15+09:00 Subject: Re: To be not, or not to be not? On Sep 22, 11:05 pm, Ruby Freak wrote: > Is !! as simple as it looks, or does it have meaning beyond a double > negative? Google doesn't recognize !! in a search. It's as simple as it looks, which is up for debate. The point of the double negative is to concisely turn any into a boolean. !! will always result in either true or false. See http://github.com/ymendel/truthy/tree/master/lib/truthy.rb (and the spec at http://github.com/ymendel/truthy/tree/master/spec/truthy_spec.rb if you're interested). -- -yossef