Subject: Re: Getting (var = false) to return true?
From: Joe Ruby MUDCRAP-CE <joeat303 yahoo.com>
Date: Fri, 27 Oct 2006 17:47:31 +0900
References: 222225222226222228222229
In-reply-to: 222229
Farrel Lifson wrote:
>> Nah, I need the value returned from the function to always be true. Hmm,
>> maybe this will work:
>
> Ruby considers any object that is not false or nil to be true.
Yup.
--
Posted via http://www.ruby-forum.com/.