Module: Kernel

Defined in:
lib/safemode/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#silently(&blk) ⇒ Object



2
3
4
5
6
# File 'lib/safemode/core_ext.rb', line 2

def silently(&blk)
  old_verbose, $VERBOSE = $VERBOSE, nil
  yield
  $VERBOSE = old_verbose
end