[feat] allow enabling warnings wout changing $VERBOSE#7534
[feat] allow enabling warnings wout changing $VERBOSE#7534kares merged 1 commit intojruby:masterfrom
Conversation
|
This seems fine, but I wonder how much effect it will have after code has loaded and cached the current |
The actual use-case, this came from, is actually setting up the runtime early. |
|
@kares Yeah that makes sense. I think it's a good change. If someone gets confused we can just explain that these values are frequently cached during post-boot startup by some libraries. |
previously there was no way of "just enabling warnings", warnings were enabled with
setVerbose(IRubyObject verbose)to be able to consume warnings but not change
$VERBOSEI've added asetWarningsEnabled.also for Java consumers it's easier to deal with Java values thus
setVerbose(Boolean verbose)overload is added ...