From: Brian Candler Date: 2011-02-01T03:06:12+09:00 Subject: Re: Alias method in module Su Zhang wrote in post #978699: > class A > def foo > puts 'bar' > super > end > end > > module Foo > def foo > puts 'foobar' > end > end > > A.send :include, Foo > > a = A.new > a.foo # => bar\nfoobar It's the same in 1.8.7. I think the OP was looking for a way to achieve the opposite behaviour: to import a module which would override the method in the class. -- Posted via http://www.ruby-forum.com/.