Simplify report printing

This commit is contained in:
Markus Schirp 2014-10-08 12:17:30 +00:00
parent c7de9a24fb
commit 1681fa4511
2 changed files with 1 additions and 14 deletions

View file

@ -71,7 +71,7 @@ module Mutant
# @api private
#
def report(env)
format.write_report(env, output)
Printer::EnvResult.run(output, env)
self
end

View file

@ -25,19 +25,6 @@ module Mutant
#
abstract_method :progress
# Write report
#
# @param [Result::Env] env
# @param [IO] output
#
# @return [String]
#
# @api private
#
def write_report(env, output)
Printer::EnvResult.run(output, env)
end
# Output abstraction to decouple tty? from buffer
class Output
include Concord.new(:tty, :buffer)