module Kernel

def silence_warnings(&block)

noisy_call # warning voiced

end
value = noisy_call # no warning voiced
silence_warnings do

value afterwards.
Sets $VERBOSE to +nil+ for the duration of the block and back to its original
def silence_warnings(&block)
  with_warnings(nil, &block)
end