From: "Ara.T.Howard" Date: 2006-03-13T09:48:18+09:00 Subject: alias_method 'stickiness' any idea if this behaviour is intended or not? mussel:~/eg/ruby/nrtlib/nrtlib-0.0.0 > cat a.rb # # the problem # module NRT class Subscription def process_incoming raise NotImplementedError end alias_method "run", "process_incoming" end class OLSSubscription < Subscription def process_incoming p 42 end end end begin; NRT::OLSSubscription::new.run ;rescue Exception => e; p e; end # # an easy solution # module NRT class Subscription def self::anonym dst, src module_eval %Q[ def #{ dst }(*a, &b) #{ src }(*a, &b) end ] end anonym "run", "process_incoming" end end NRT::OLSSubscription::new.run mussel:~/eg/ruby/nrtlib/nrtlib-0.0.0 > ruby a.rb # 42 this seems odd to me. -a -- share your knowledge. it's a way to achieve immortality. - h.h. the 14th dali lama