Sha256: c8f0b247f08e0136f2883daaf18ac7e3c4b4a07653559d9f1338e95763cbf01c

Contents?: true

Size: 378 Bytes

Versions: 8

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

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

      # Enumerate subjects
      #
      # @param [Env::Bootstrap] env
      #
      # @return [Enumerable<Subject>]
      def call(_env)
        EMPTY_ARRAY
      end

    end # Null
  end # Matcher
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.24 lib/mutant/matcher/null.rb
mutant-0.8.23 lib/mutant/matcher/null.rb
mutant-0.8.22 lib/mutant/matcher/null.rb
mutant-0.8.21 lib/mutant/matcher/null.rb
mutant-0.8.20 lib/mutant/matcher/null.rb
mutant-0.8.19 lib/mutant/matcher/null.rb
mutant-0.8.18 lib/mutant/matcher/null.rb
mutant-0.8.17 lib/mutant/matcher/null.rb