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