2012-08-16 04:10:54 +02:00
|
|
|
module Mutant
|
|
|
|
class Reporter
|
|
|
|
# Reporter that reports in human readable format
|
|
|
|
class CLI < self
|
2013-06-21 23:52:57 +02:00
|
|
|
include Concord::Public.new(:output)
|
2012-08-29 13:36:29 +02:00
|
|
|
|
2013-06-21 17:52:53 +02:00
|
|
|
NL = "\n".freeze
|
|
|
|
|
2013-04-21 02:20:18 +02:00
|
|
|
# Report object
|
|
|
|
#
|
|
|
|
# @param [Object] object
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def report(object)
|
2013-06-21 23:52:57 +02:00
|
|
|
Printer.visit(object, output)
|
2013-04-21 02:20:18 +02:00
|
|
|
self
|
|
|
|
end
|
|
|
|
|
2013-06-14 20:54:02 +02:00
|
|
|
end # CLI
|
|
|
|
end # Reporter
|
|
|
|
end # Mutant
|