From: ragav Date: 2008-10-03T19:58:40+09:00 Subject: Re: Problem extending (adding methods) to class > > So my question again is: are classes declared within a module > typically/always factory classes like this -- i mean with singleton new > methods? Singleton new methods are rare (IO.new, Class.new, Struct.new ..) and out of these only IO gives the expected behavior when you subclass i.e Subclass.new.class == Subclass. Classes defined inside modules are primarily for namespacing. > > Perhaps I should look thru the source code of Facets or some other > project to jump-start my ruby. Any suggestions? Sure Facets has plenty of code samples. RubyQuiz is another. --Cheers --Ragav