From: "Mauricio Fernández" Date: 2004-04-03T01:15:09+09:00 Subject: Re: parent of TrueClass, FalseClass On Sat, Apr 03, 2004 at 12:34:20AM +0900, Ara.T.Howard wrote: > i realize ruby is moving more towards duck typing. but considering that - how > to you duck type a truth value? i mean, which method must something > respond_to? in order to be a bool? could it be useful if there was one? Object#to_bool has been suggested quite often see http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/12094 -- Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Computers are like air conditioners. Both stop working, if you open windows. -- Adam Heath