Sha256: 698554cfff148acd0e2afd490bb1be3bf0b7f3c8fbfbde7b6a8528c137573e5e

Contents?: true

Size: 255 Bytes

Versions: 8

Compression:

Stored size: 255 Bytes

Contents

module Reek
  module CLI
    # CLI silencer
    # @api private
    module Silencer
      def self.silently
        old_verbose, $VERBOSE = $VERBOSE, nil
        yield if block_given?
      ensure
        $VERBOSE = old_verbose
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reek-3.2.1 lib/reek/cli/silencer.rb
reek-3.2 lib/reek/cli/silencer.rb
reek-3.1 lib/reek/cli/silencer.rb
reek-3.0.4 lib/reek/cli/silencer.rb
reek-3.0.3 lib/reek/cli/silencer.rb
reek-3.0.2 lib/reek/cli/silencer.rb
reek-3.0.1 lib/reek/cli/silencer.rb
reek-3.0.0 lib/reek/cli/silencer.rb