From: "David A. Black" Date: 2008-10-03T05:11:54+09:00 Subject: Re: Problem extending (adding methods) to class Hi -- On Fri, 3 Oct 2008, Nit Khair wrote: > Nit Khair wrote: >> David A. Black wrote: >>> Hi -- >>> >>> On Fri, 3 Oct 2008, Nit Khair wrote: >>> >>>>> please post some actual code that triggers the error you're talking > > OK David, I will attach a file that comes with ncurses-ruby. > I have subclassed FORM with MyForm and tried to call a method. > > (Once it works You can exit using C-c or alt-c.) > > > Strangely in the samples we made, FORM and FIELD take no params. This is > outside of the ncurses environment. In the sample i sent you earlier, i > tried to create a FIELD object, but it would take no params !!! > So i had no option but to take an independent fully working sample and > add a few lines. OK, I think what's happening here is that the FORM class is overriding new, in such a way that it does not call initialize. So overriding initialize doesn't do anything. I don't have a solution worked out but I believe that's the issue. David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!