Hi,

At Fri, 23 Sep 2005 08:51:39 +0900,
Trans wrote in [ruby-talk:157187]:
> > In Ruby, truth-ness is determined by the object itself, not by
> > its class.
> 
> How does that work in an 'if' statement?
> 
>   if foo
> 
> How does 'foo' tell 'if' it's not truth-ful?

not (nil.equals?(foo) or false.equals?(foo))

> I'm not sure I understand the distinction you make. Isn't an object's
> behavior determined by it's class?

No, language feature.

-- 
Nobu Nakada