class Common::Utils
Public Class Methods
suppress_warnings() { || ... }
click to toggle source
Suppress all warnings raised within the block of code. i.e. suppress_warnings
{ code_that_raise_warnings }
# File lib/common/utils.rb, line 28 def self.suppress_warnings v = $VERBOSE $VERBOSE = nil yield ensure $VERBOSE = v end