From: Jamal Soueidan Date: 2007-04-04T09:39:55+09:00 Subject: Re: Everything is a object? Gary Wright wrote: > > It is a language keyword, not a method, so you won't > find it in any of the class documentation. You'll have > to look at one of the language manuals. It is > discussed here: > > > Gary Wright From my previous language (PHP) I could easily write function like this if (empty($var)) even if the $var is not declared.. I thought in Ruby it will work the same way if var.empty? (but empty is only in the String) so I thought something like this would solve it. if var.to_s.empty? (object to string) this didn't work either, but object had the nil method which could be used :) if var.nil? this didn't work either .. so in Ruby everything is object if it was declared before :P o -- Posted via http://www.ruby-forum.com/.