Module: Soba::Monkey

Defined in:
lib/soba/monkey.rb

Class Method Summary collapse

Class Method Details

.patch!Object Also known as: patch_all!



5
6
7
8
9
10
11
# File 'lib/soba/monkey.rb', line 5

def patch!
  origin_verbose = $VERBOSE
  $VERBOSE = nil
  LightIO::Monkey.patch_all! unless LightIO::Monkey.patched?(IO)
ensure
  $VERBOSE = origin_verbose
end