lib/mutant/matcher/null.rb in mutant-0.8.7 vs lib/mutant/matcher/null.rb in mutant-0.8.8
- old
+ new
@@ -4,19 +4,16 @@
class Null < self
include Concord.new
# Enumerate subjects
#
- # @return [Enumerator<Subject]
- # if no block given
+ # @param [Env] env
#
- # @return [self]
- # otherwise
+ # @return [Enumerable<Subject>]
#
# @api private
- def each
- return to_enum unless block_given?
- self
+ def call(_env)
+ EMPTY_ARRAY
end
end # Null
end # Matcher
end # Mutant