37 lines
590 B
Ruby
37 lines
590 B
Ruby
module Mutant
|
|
# Abstract base class for reporters
|
|
class Reporter
|
|
include Adamantium::Flat, AbstractType
|
|
|
|
# Write warning message
|
|
#
|
|
# @param [String] message
|
|
#
|
|
# @return [self]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract_method :warn
|
|
|
|
# Report object
|
|
#
|
|
# @param [Object] object
|
|
#
|
|
# @return [self]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract_method :report
|
|
|
|
# Report progress on object
|
|
#
|
|
# @param [Object] object
|
|
#
|
|
# @return [self]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract_method :progress
|
|
|
|
end # Reporter
|
|
end # Mutant
|