From: 13 Date: 2006-05-13T18:25:29+09:00 Subject: Re: boolean affectation shortcut Hi, You can' t because only methods can end with ?, but you are using itlike a variable.Looks, like you need to rethink your programs design. Maybe something like this: class Image... def new_image? filesize > 0 end...end --Martins On 5/13/06, Nuno wrote:> Hello here !>> I wonder why I can't use these statements :> new_image? = (filesize > 0)>> or even>> new_image? = (filesize > 0 ? true : false)>> Thanks>> --> Posted via http://www.ruby-forum.com/.>>