From: James Edward Gray II Date: 2007-04-04T22:32:42+09:00 Subject: Re: Everything is a object? On Apr 4, 2007, at 8:25 AM, Jamal Soueidan wrote: > Actually I was trying to do it this way, when I started. > > if @var.nil? > p "empty" > end > > which works normal..but @var is nothing yet, and not declared, but > still > its object of object class? I think you're making this harder than it is. Unassigned instance (and global) variables default to nil, but issue a warning on first use. nil is an object like anything else in Ruby. James Edward Gray II