Module: Kernel

Defined in:
lib/ruby/kernel.rb

Instance Method Summary collapse

Instance Method Details

#silenceObject



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

def silence
  $VERBOSE, old_verbosity = nil, $VERBOSE
  yield
ensure
  $VERBOSE = old_verbosity
end