From: Morton Goldberg Date: 2007-11-23T10:33:14+09:00 Subject: Re: Call overwritten method of included module? On Nov 22, 2007, at 6:21 PM, Joshua Muheim wrote: > Hi all > > module MyModule > def my_method > return "my module rocks!" > end > end > > class MyClass > include(MyModule) > > def my_method > return "my class rocks!" > end > end > > Is there a way to call MyModule::my_method from within MyClass? > "super" > sadly doesn't work... Perhaps this will do: module MyModule def my_method "my module rocks!" end end class MyClass include MyModule alias module_method my_method def my_method "#{module_method}\nmy class rocks!" end end puts MyClass.new.my_method my module rocks! my class rocks! Regards, Morton