From: Joerg Diekmann Date: 2006-12-06T21:54:49+09:00 Subject: Re: Calling super in overwritten methods Hmmm ... that doesn't work for me. class A def method1 method2 end def method2 return 100 end end class B < A def method1 self.class.superclass.instance_method( :method1 ).bind( self ).call end def method2 return 200 end end b.method1 # Still 200 instead of 100 Hemant Kumar wrote: > Indeed but sometime back, we had similar discussion here and someone > (David I guess) proposed: > > class Parent > def knox > puts 'parent' > end > end > > class Child < Parent > def knox > puts 'child' > end > def test > self.class.superclass.instance_method( :knox ).bind( self ).call > end > end > > Child.new.test -- Posted via http://www.ruby-forum.com/.