From: Huw Collingbourne Date: 2008-05-27T21:20:51+09:00 Subject: Re: OOP in Ruby? aidy wrote: > On May 26, 3:59 pm, luka luka wrote: >> In Ruby, everything is an object. > > The 'if' expression is not an object. > There are many things in Ruby that are not objects - not only keywords but also, for example, blocks. While blocks can be 'converted' into objects (Proc objects), unlike in some other languages (such as Smalltalk), Ruby blocks do not automatically have an independent existence - that is, just writing a block in code does not make it an instance of a Block (or Proc) class. best wishes Huw SapphireSteel Software Ruby and Rails In Visual Studio http://www.sapphiresteel.com -- Posted via http://www.ruby-forum.com/.