From: Austin Ziegler Date: 2004-02-18T12:38:45+09:00 Subject: Re: boolean to int conversion On Wed, 18 Feb 2004 12:09:54 +0900, Cere Davis wrote: > I'm a bit of a Ruby newbie so be kind pls. > Could someone tell me if there's an easy way to make a value of True go > to 1 and False goto 0? > a sort of to_i method? bar = foo ? 1 : 0 Now the real question: why do you want it to do so? -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2004.02.17 * 22.37.32