warning: method redefined; discarding old <=>

R

Ralph Shnelvar

[Note: parts of this message were removed to make it a legal post.]

I have monkey patched the spaceship operator in an FXRuby Class.

I _do_ want to do this .... so how do I turn off this warning?
 
B

Brian Candler

Ralph said:
I have monkey patched the spaceship operator in an FXRuby Class.

I _do_ want to do this .... so how do I turn off this warning?

I'd just do:

begin
old_verbose = $VERBOSE
$VERBOSE = false
do_stuff
ensure
$VERBOSE = old_verbose
end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top