Jano Svitok
4/1/2008 1:07:00 PM
On Tue, Apr 1, 2008 at 3:02 PM, Oliver Saunders
<oliver.saunders@gmail.com> 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_method :old_exec, :exec
> def exec(*args)
> puts "exec: #{args}"
- super *args
+ old_exec(*args)
> end
> end