Module: Reek::CLI::Silencer Private

Defined in:
lib/reek/cli/silencer.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

CLI silencer

Class Method Summary collapse

Class Method Details

.silentlyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



6
7
8
9
10
11
# File 'lib/reek/cli/silencer.rb', line 6

def self.silently
  old_verbose, $VERBOSE = $VERBOSE, nil
  yield if block_given?
ensure
  $VERBOSE = old_verbose
end