free_mutant/lib/mutant/reporter/null.rb
2014-06-30 18:08:44 +00:00

46 lines
710 B
Ruby

module Mutant
class Reporter
# Null reporter
class Null < self
include Equalizer.new
# Write warning message
#
# @param [String] _message
#
# @return [self]
#
# @api private
#
def warn(_message)
self
end
# Report object
#
# @param [Object] _object
#
# @return [self]
#
# @api private
#
def report(_object)
self
end
# Report progress on object
#
# @param [Object] _object
#
# @return [self]
#
# @api private
#
def progress(_object)
self
end
end # Null
end # Reporter
end # Mutant