2012-08-16 04:10:54 +02:00
|
|
|
module Mutant
|
|
|
|
class Reporter
|
2012-12-11 00:17:19 +01:00
|
|
|
|
2013-01-04 22:16:03 +01:00
|
|
|
# Null reporter
|
2012-12-11 00:17:19 +01:00
|
|
|
class Null < self
|
2014-05-12 13:48:15 +00:00
|
|
|
include Equalizer.new
|
2012-12-11 00:17:19 +01:00
|
|
|
|
2014-06-30 13:21:19 +00:00
|
|
|
# Write warning message
|
|
|
|
#
|
|
|
|
# @param [String] _message
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
2014-06-30 18:08:44 +00:00
|
|
|
def warn(_message)
|
2014-06-30 13:21:19 +00:00
|
|
|
self
|
|
|
|
end
|
|
|
|
|
2013-04-20 20:47:07 +02:00
|
|
|
# Report object
|
2012-08-16 04:10:54 +02:00
|
|
|
#
|
2013-04-20 20:47:07 +02:00
|
|
|
# @param [Object] _object
|
2012-08-16 04:10:54 +02:00
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
2013-04-20 20:47:07 +02:00
|
|
|
def report(_object)
|
2012-08-16 04:10:54 +02:00
|
|
|
self
|
|
|
|
end
|
|
|
|
|
2014-05-12 13:48:15 +00:00
|
|
|
# Report progress on object
|
|
|
|
#
|
|
|
|
# @param [Object] _object
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def progress(_object)
|
|
|
|
self
|
|
|
|
end
|
|
|
|
|
2013-06-14 20:54:02 +02:00
|
|
|
end # Null
|
|
|
|
end # Reporter
|
|
|
|
end # Mutant
|