Module: Kernel

Defined in:
lib/i18n/core_ext/kernel/suppress_warnings.rb

Instance Method Summary collapse

Instance Method Details

#suppress_warningsObject


2
3
4
5
6
7
# File 'lib/i18n/core_ext/kernel/suppress_warnings.rb', line 2

def suppress_warnings
  original_verbosity, $VERBOSE = $VERBOSE, nil
  yield
ensure
  $VERBOSE = original_verbosity
end