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