From: Harold Hausman Date: 2006-11-13T10:31:54+09:00 Subject: Re: Getting initialization status from "foo = Class.new" On 11/13/06, Rodney Brown wrote: > Is there a way for "Class.new" to signal failure? I originally had the > class's initialize method return true or false but this doesn't seem to > be reflected in a "foo = Class.new" when trying it in irb. > > Using the class variable "found" works but shouldn't Class.new signal > failure? > How about raising an exception? http://www.rubycentral.com/book/tut_exceptions.html -Harold