S
Sean Russell
I'm trying a new method of doing encoding support in REXML, and one of
the things I'm trying is redefining a couple of methods based on the
encoding. The problem is that if "-w" is enabled on the interpreter,
Ruby spews out "discarding old method definitions" every time this
happens, which is certainly not what I want.
Obviously, since this is a library, I have no control over whether the
application enables "-w". Is it possible to programmatically disable
the warning? I've played a bit with undef'ing the methods before
redefining them, but had no success with that.
Any suggestions would be greatly appreciated.
--- SER
the things I'm trying is redefining a couple of methods based on the
encoding. The problem is that if "-w" is enabled on the interpreter,
Ruby spews out "discarding old method definitions" every time this
happens, which is certainly not what I want.
Obviously, since this is a library, I have no control over whether the
application enables "-w". Is it possible to programmatically disable
the warning? I've played a bit with undef'ing the methods before
redefining them, but had no success with that.
Any suggestions would be greatly appreciated.
--- SER