free_mutant/lib/mutant/reporter/null.rb

47 lines
710 B
Ruby
Raw Normal View History

module Mutant
class Reporter
# Null reporter
class Null < self
include Equalizer.new
# Write warning message
#
# @param [String] _message
#
# @return [self]
#
# @api private
#
2014-06-30 14:08:44 -04:00
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
2013-06-14 14:54:02 -04:00
end # Null
end # Reporter
end # Mutant