From: Dominik Werder Date: 2004-12-10T05:07:27+09:00 Subject: Re: Overloading a module method? I found some things on the path to the solution that I wanted to share. I'm not yet entirely happy with this code because I still have to watch to not "load 'mymath.rb'" it twice, anyway.. One important thing I learned: module functions are much different from normal methods you can define within a module.. module Math unless const_defined? :T # I may not do this twice, otherwise I loose the original puts "Aliasing" T=true alias :sino :sin # preserving the original module_function :sino # required if I want to call sino from within Math.sin end def sin x # here goes my new sin where I still use the old one if x.kind_of? Wert W.abs sino(x.v), coso(x.v)*x.e else sino x end end module_function :sin # make it available as Math.sin too end