From: Joel VanderWerf Date: 2005-05-12T04:36:50+09:00 Subject: Re: alternatives to ? : contruct John-Mason P. Shackelford wrote: ... > I'd really like to be able to say: > > a = b if y==z otherwise c Just kidding: class Object def incase(cond) if cond self else yield end end end a = 3.incase(1==2) {"c"} p a a = 3.incase(1==1) {"c"} p a