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