From: Rick DeNatale Date: 2008-06-29T07:38:29+09:00 Subject: Re: question about defined? and y ------=_Part_2033_27127229.1214692861699 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, Jun 27, 2008 at 1:57 PM, Ruby Freak wrote: > > Possibly I simply have inaccurate expectations. For whatever reason, I > expect a method/keyword that ends in "?" to return a boolean. (which > is probably just my imagination) In general, predicates in Ruby return an object which can be regarded as "truthful" or not. Lately, after reading Douglas Crockford's "JavaScript: The Good Parts," I've taken to adapting his explanation of "truthy" and "falsy" values to Ruby. I like this because it put's Stephen Colbert's notion of "truthiness" into practice. In Ruby nil and false are the only "falsy" values, any other object is "truthy". -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ ------=_Part_2033_27127229.1214692861699--