Sha256: 8db3996d5159ef9fec3a3380cfef62d584343524c941c3e0e51e93ec7fb9b614

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

module Mutant
  class Matcher
    # A null matcher, that does not match any subjects
    class Null < self
      include Equalizer.new

      # Enumerate subjects
      #
      # @return [Enumerator<Subject]
      #   if no block given
      #
      # @return [self]
      #   otherwise
      #
      # @api private
      #
      def each
        return to_enum unless block_given?
        self
      end

    end # Null
  end # Matcher
end # Mutant

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.5.24 lib/mutant/matcher/null.rb
mutant-0.5.23 lib/mutant/matcher/null.rb
mutant-0.5.22 lib/mutant/matcher/null.rb
mutant-0.5.21 lib/mutant/matcher/null.rb
mutant-0.5.20 lib/mutant/matcher/null.rb