From: Drew Olson Date: 2007-10-16T08:09:46+09:00 Subject: Re: Override methods from a module Gavin Kistner wrote: > goof = Bar.new > goof.bar > #=> before class > #=> in class > #=> after class Gavin - Thanks for the responses. I think you're examples are interesting, however I'm not sure this will help me as my objects are already in inheritance chains. Ideally, I want to be able to include a module that will "magically" add functionality to existing methods without forcing any other code changes. Obviously this presents some challenges. Initially, I figured I would be able to alias the current method, override the existing method in the module and then call the original version when I was done. However, because I was including the module at the top of the class it was not yet able to see that the setup/teardown methods existed yet. Your examples definitely help and may have helped me with another way of looking at the problem but I'm not sure they'll work as my objects are already extending parent objects. - Drew -- Posted via http://www.ruby-forum.com/.