Module: Contrast::Utils::SilenceMaker

Defined in:
lib/contrast/utils/silence_maker.rb

Overview

Silence sometimes is a bliss.

Class Method Summary collapse

Class Method Details

.hush(&block) ⇒ Object



8
9
10
11
12
13
# File 'lib/contrast/utils/silence_maker.rb', line 8

def self.hush &block
  old_verbose, $VERBOSE = $VERBOSE, nil # rubocop:disable Style/ParallelAssignment
  yield(block)
ensure
  $VERBOSE = old_verbose
end