From: jayce@... (Jayce Piel) Date: 2002-04-04T20:31:32+09:00 Subject: Test the result of an initialization ? Hi, I'm a newbie in Ruby, so please don't blam me if my question is stupid. Is there a simple way to know if there were an error in the initialize method ? Example : I have a class "ArchiveFile". Its initialize method have a 'path' parameter. What I want is if the path is not a path to a file, the object is not created. I try to do a "return nil" in initialize, but it has no effect. Do I need to test the file outside of the initialization ? -- Jayce Piel ( jayce@mosx.net ) Site Web sur MacOS X (Server) en fran�ais : Pourquoi il ne faut pas activer le compte root ? R�ponse :