From: Jano Svitok Date: 2007-06-22T17:56:40+09:00 Subject: Re: Everything in ruby is an object? On 6/22/07, Mark Gargan wrote: > Hey folks, > > > 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? 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. > > Thanks, > Mark. No. Expressions are not objects. Objects are true and false, and && || are methods. Expressions are series of calls.