Search code examples
rubywarningsconstantssuppress-warnings

How to disable warning for redefining a constant when loading a file


Is there a way to disable warning: already initialized constant when loading particular files?


Solution

  • To suppress warnings, use the following code at the top of the script:

    $VERBOSE = nil