From: polypus Date: 2006-03-29T08:56:43+09:00 Subject: funky alias problem hi, if i write module M def foo old_foo end end class X def foo puts X end def extend_yourself alias old_foo foo extend M end end class Y < X def foo puts Y end end x = X.new y = Y.new x.foo -> X y.foo -> Y x.extend_yourself y.extend_yourself x.foo -> X y.foo -> X !!! the behaviour i want though is y.foo -> Y what is the best way? thanks many -- Posted via http://www.ruby-forum.com/.