I'm trying to redefine a gem's constant dynamically so I don't need to modify the gem itself.
require 'xmlrpc/client'
XMLRPC::Config.const_set("ENABLE_NIL_PARSER", true)
warning: already initialized constant ENABLE_NIL_PARSER
Is it possible to get rid of the warning?
The easy way:
v, $VERBOSE = $VERBOSE, nil
# code goes here
$VERBOSE = v
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With