Class: Mutant::Matcher::Null

Inherits:
Mutant::Matcher show all
Defined in:
lib/mutant/matcher/null.rb

Overview

A null matcher, that does not match any subjects

Instance Method Summary collapse

Methods inherited from Mutant::Matcher

build, #identification

Instance Method Details

#eachEnumerator<Subject] if no block given, self

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Enumerate subjects

Returns:

  • (Enumerator<Subject] if no block given)

    Enumerator<Subject] if no block given

  • (self)

    otherwise


17
18
19
20
# File 'lib/mutant/matcher/null.rb', line 17

def each
  return to_enum unless block_given?
  self
end