From: Robert Klemme Date: 2007-09-09T03:15:04+09:00 Subject: Re: #to_b - why isn't this one already in there? On 08.09.2007 18:17, Lloyd Linklater wrote: > Robert Klemme wrote: >> Like this one? >> >> class String >> def to_b() self != "false" end >> end > > Not bad but I am thinking that, with people saying that they want to > have a wide assortment of what constitutes true, that they should make a > list (array) of things which would evaluate to true and anything else > would be false. But that is so individual that making it part of the > language seems counter productive. Yeah, in that case teh Hash based approach seems more appropriate. Kind regards robert