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
|
|
|
|
2014-08-11 09:50:48 -04:00
|
|
|
%w[warn report start progress].each do |name|
|
|
|
|
define_method name do |_object|
|
|
|
|
self
|
|
|
|
end
|
2014-05-12 09:48:15 -04:00
|
|
|
end
|
|
|
|
|
2013-06-14 14:54:02 -04:00
|
|
|
end # Null
|
|
|
|
end # Reporter
|
|
|
|
end # Mutant
|