From: Tom Sawyer Date: 2002-07-22T19:16:38+09:00 Subject: define_method with super in the proc ran into a serious problemo! i'm trying to create a subclass with Class.new and then override a method with define_method, using super (of course) to call up to the superclass. ex- class A def doit @x = 5 end end def makeproc Proc.new { super @y = 10 } end B = ClassNew(A) B.class_eval { define_method(:doit, makeproc) } the problem is that #makeproc is interpreting the super for itself and thus reports an error of 'makeproc' super: no superclass method 'makeproc' (NameError). obviously that's not what i want. how strange. it dosen't try to define @y = 10 for makeproc's object. how do i work around this? ~transami _(")_ dobee dobee do... \v/ ^ ^