From: Avi Bryant Date: 2001-08-17T19:06:33+09:00 Subject: [ruby-talk:19938] Re: "new" returning nil: how to report the failure of object creation On Fri, 17 Aug 2001, Ryo Furue wrote: > ....except for this problem: How should I prevent the user from calling > MyClass.new? One person (Sorry, but my newsreader doesn't allow me to > go back to the list to check your name until I finish posting.) > suggested that I should make MyClass.new private. But, I don't know > how to accomplish it. does this work? class MyClass class << self private :new end end