Sha256: 01c3e84e86e45d9af9b42f80304e8a61f99bd15b29315cbc7df38d57844b09fd

Contents?: true

Size: 440 Bytes

Versions: 7

Compression:

Stored size: 440 Bytes

Contents

module Mutant
  class Matcher
    # A null matcher, that does not match any subjects
    class Null < self
      include Concord.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

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.8.7 lib/mutant/matcher/null.rb
mutant-0.8.6 lib/mutant/matcher/null.rb
mutant-0.8.5 lib/mutant/matcher/null.rb
mutant-0.8.4 lib/mutant/matcher/null.rb
mutant-0.8.3 lib/mutant/matcher/null.rb
mutant-0.8.2 lib/mutant/matcher/null.rb
mutant-0.8.1 lib/mutant/matcher/null.rb