From: Dave Thomas Date: 2002-07-26T02:55:28+09:00 Subject: Re: [PATCH] object.c ruby.h (fwd) nobu.nokada@softhome.net writes: > At Thu, 25 Jul 2002 22:20:32 +0900, > Dave Thomas wrote: > > > Something built-in to get truth value of each object may help explain > > > the boolean aspect in Ruby. > > > > > > % ruby -e ' > > > module Kernel > > > def truth() !!self end > > > end > > > > Perhaps #to_b? > > How about "true?"? Hi: Well, to me, a.true? would imply the same as a == true, which isn't what it does. #to_b, however, implies a conversion to the mythical Boolean type. :) Dave