module Reek::CLI::Silencer
CLI
silencer
Public Instance Methods
Source
# File lib/reek/cli/silencer.rb, line 12 def silently old_verbose = $VERBOSE old_stderr = $stderr old_stdout = $stdout $VERBOSE = false $stderr = StringIO.new $stdout = StringIO.new yield ensure $VERBOSE = old_verbose $stderr = old_stderr $stdout = old_stdout end
@quality :reek:TooManyStatements { max_statements: 9 }
Source
# File lib/reek/cli/silencer.rb, line 27 def without_warnings old_verbose = $VERBOSE $VERBOSE = false yield ensure $VERBOSE = old_verbose end