Module: XMP::Silencer

Defined in:
lib/xmp/silencer.rb

Class Method Summary collapse

Class Method Details

.silentlyObject



3
4
5
6
7
8
9
# File 'lib/xmp/silencer.rb', line 3

def self.silently
  verbosity = $VERBOSE
  $VERBOSE = nil
  result = yield
  $VERBOSE = verbosity
  result
end