From: Dominik Werder Date: 2004-12-10T21:07:26+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.. > > I dont see why you have to do this. Unless I understand you wrong I do > not get the problem. For example: Yes, this works perfectly as long as you don't "load" the module definition twice accidentally. Otherwise the old sin method gets lost. Try it, paste your module definition twice into irb and try to call it. But thats just a minor issue, because I can keep track by a flag. I have to do this because some scripts use load instead of require, so it happens that the code is loaded twice.. bye and thank you! Dominik