From: Robert Klemme Date: 2007-06-22T18:05:12+09:00 Subject: Re: Everything in ruby is an object? On 22.06.2007 09:57, Mark Gargan wrote: > I'm reading the tutorial on Ruby located at > > http://www.rubycentral.com/book/ > > In it the guys state that everything in Ruby is an object. > I was just wondering if that applies to Boolean expressions > i.e. the likes of && and ||. Is there a wrapper object for these > types? No expression in Ruby is an object. But results of evaluating them are objects. There is no real boolean type in Ruby as the rule is "nil and false are false, everything else is true". > I've written a small expression filter that retrieves a boolean > expression from the db and I was just wondering if there was a quicker > way of processing it other than a case statement. Not sure what you are at here. Can you show a short example of what you are doing? (Not the DB retrieval but the postprocessing) Kind regards robert