From: Dave Mihalik Date: 2006-07-28T08:11:39+09:00 Subject: Re: Prevent class instantiation from the initialize method? Jake McArthur wrote: > On Jul 27, 2006, at 2:21 PM, Dave Mihalik wrote: > >> Can some show me how to implement this java program using Ruby? >> I am simply trying to prevent the testclass from being instantiated in >> the constructor. >> I am then checking to see if the the class has instanatiated properly. > > This seems like a bad idea. I can think of no good reason to do this. > This is probably just a bad solution to a very different problem. > What exactly are you planning to do with this? > > - Jake McArthur I am trying to handle any errors that may occur in the initialize method. I don't want to the class to instantiate if errors occur in the initialize method. -- Posted via http://www.ruby-forum.com/.