Sha256: 28e5292f4a3c98aaf3ca9cfa738d758229577898e6127f699469e3f745d6425d
Contents?: true
Size: 466 Bytes
Versions: 8
Compression:
Stored size: 466 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
8 entries across 8 versions & 1 rubygems