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 # @api private
# #
def report(env) def report(env)
format.write_report(env, output) Printer::EnvResult.run(output, env)
self self
end end

View file

@ -25,19 +25,6 @@ module Mutant
# #
abstract_method :progress 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 # Output abstraction to decouple tty? from buffer
class Output class Output
include Concord.new(:tty, :buffer) include Concord.new(:tty, :buffer)