Fix interface of baseclass and null object
This commit is contained in:
parent
d63f3d68bd
commit
7e34d236a6
2 changed files with 22 additions and 0 deletions
|
@ -3,6 +3,16 @@ module Mutant
|
|||
class Reporter
|
||||
include Adamantium::Flat, AbstractType
|
||||
|
||||
# Write warning message
|
||||
#
|
||||
# @param [String] message
|
||||
#
|
||||
# @return [self]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
abstract_method :warn
|
||||
|
||||
# Report object
|
||||
#
|
||||
# @param [Object] object
|
||||
|
|
|
@ -5,6 +5,18 @@ module Mutant
|
|||
class Null < self
|
||||
include Equalizer.new
|
||||
|
||||
# Write warning message
|
||||
#
|
||||
# @param [String] _message
|
||||
#
|
||||
# @return [self]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def report(_message)
|
||||
self
|
||||
end
|
||||
|
||||
# Report object
|
||||
#
|
||||
# @param [Object] _object
|
||||
|
|
Loading…
Add table
Reference in a new issue