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
def exec(*args)
puts “exec: #{args}”
super *args
end
end
But super ends up calling Kernel#exec, how can I refer to the version of
exec before I added the puts enhancement?
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’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.