Created
July 9, 2018 08:38
-
-
Save ForeverZer0/7dfa138296152cd8d4c5c1925acaf7c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Kernel | |
def suppress_warning | |
return unless block_given? | |
verbosity = $VERBOSE | |
$VERBOSE = nil | |
yield | |
$VERBOSE = verbosity | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment