free_mutant/lib/mutant/reporter/cli.rb

51 lines
856 B
Ruby
Raw Normal View History

module Mutant
class Reporter
# Reporter that reports in human readable format
class CLI < self
include Concord.new(:output)
NL = "\n".freeze
# Report progress object
#
# @param [Object] object
#
# @return [self]
#
# @api private
#
def progress(object)
Progress.run(output, object)
self
end
# Report warning
#
# @param [String] message
#
# @return [self]
#
# @api private
#
def warn(message)
output.puts(message)
self
end
# Report object
#
# @param [Object] object
#
# @return [self]
#
# @api private
#
def report(object)
Report.run(output, object)
self
end
2013-06-14 20:54:02 +02:00
end # CLI
end # Reporter
end # Mutant