Forum: Ruby Re: Object#to_b

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1c1e3bdfe006a22214102fcd6434a012?d=identicon&s=25 daniels (Guest)
on 2005-11-17 01:50
(Received via mailing list)
> Unless somebody can come up with a decent use-case, I'd say
> that we just change the if evaluations to also allow
> subclasses of FalseClass and NilClass (which will all be just
> singletons as they don't have new). Or change if to look at
> nil? to determine whether it's true or not.

That was meant to be "If somebody can..."

Unless, or course the use-cases present a stronger case for to_b.
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################
This topic is locked and can not be replied to.