module Kernel

def with_warnings(flag)

value afterwards.
Sets $VERBOSE for the duration of the block and back to its original
def with_warnings(flag)
  old_verbose, $VERBOSE = $VERBOSE, flag
  yield
ensure
  $VERBOSE = old_verbose
end