From: Kent Dahl Date: 2002-03-14T05:23:47+09:00 Subject: Re: Method type 'abstract' (Module#abstract) Phil Tomson wrote: > class MyClass > abstract :some_method > end > > mc = MyClass.new Ugh! Some Java/C++ idiom just reared its head in the back of my skull when seeing this. Since MyClass is abstract, I would expect the call to new to freak too. (Fail early) Which reminds me: Is there any way of seeing which methods have been redefined between a super- and subclass? SubClass.instance_methods - SuperClass.instance_methods return the new methods, but how could I get a list of methods that SubClass has redefined, if that is possible? -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )__(stud.techn.; ind. econ & management: computer technology)__( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/