2012-08-15 22:10:54 -04:00
|
|
|
module Mutant
|
2013-04-20 20:20:18 -04:00
|
|
|
# Abstract base class for reporters
|
2012-08-15 22:10:54 -04:00
|
|
|
class Reporter
|
2013-04-20 14:47:07 -04:00
|
|
|
include Adamantium::Flat, AbstractType
|
2012-08-15 22:10:54 -04:00
|
|
|
|
2014-06-30 09:21:19 -04:00
|
|
|
# Write warning message
|
|
|
|
#
|
|
|
|
# @param [String] message
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
abstract_method :warn
|
|
|
|
|
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 20:20:18 -04:00
|
|
|
abstract_method :report
|
2012-08-15 22:10:54 -04:00
|
|
|
|
2014-05-12 09:48:15 -04:00
|
|
|
# Report progress on object
|
|
|
|
#
|
|
|
|
# @param [Object] object
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
abstract_method :progress
|
|
|
|
|
2013-06-14 14:54:02 -04:00
|
|
|
end # Reporter
|
|
|
|
end # Mutant
|