Warning: method redefined; discarding old <=>

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?

Ralph S. wrote:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs