Sha256: e2a74fcfe6c128b2c9553e885ecccf192fabb45dd4850c842cd7e1eeaaf8da1c
Contents?: true
Size: 465 Bytes
Versions: 28
Compression:
Stored size: 465 Bytes
Contents
# frozen_string_literal: true require 'stringio' module Reek module CLI # CLI silencer module Silencer module_function # :reek:TooManyStatements: { max_statements: 7 } def silently old_verbose = $VERBOSE $VERBOSE = false $stderr = StringIO.new $stdout = StringIO.new yield ensure $VERBOSE = old_verbose $stderr = STDERR $stdout = STDOUT end end end end
Version data entries
28 entries across 28 versions & 1 rubygems