Module: Kernel

Defined in:
lib/green/ext.rb

Instance Method Summary collapse

Instance Method Details

#suppress_warningsObject



26
27
28
29
30
31
32
# File 'lib/green/ext.rb', line 26

def suppress_warnings
  original_verbosity = $VERBOSE
  $VERBOSE = nil
  result = yield
  $VERBOSE = original_verbosity
  return result
end