From: Michael Neumann Date: 2008-04-01T22:09:52+09:00 Subject: Re: Referring to previously overridden method without subclass Oliver Saunders wrote: > I'm trying to debug a bit of code. I want to output all the parameters > passed to PGconn#exec each time it is called but still have the method > function as it should. > > > I tried this: > > > class PGconn alias old_exec exec > def exec(*args) > puts "exec: #{args}" old_exec(*args) > end > end Regards, Michael