Sha256: 9d621946fb95fc254c6c9f597e54091e727a81b6dd0d07d999b4f2a96c863c90

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutation
    class Filter
      # Mutaiton filter filtering in regexp match on mutation identification
      class Regexp < self
        include Concord::Public.new(:regexp)

        # Test for match
        #
        # @param [Mutation] mutation
        #
        # @return [true]
        #   returns true if mutation identification is matched by regexp
        #
        # @return [false]
        #   returns false otherwise
        #
        # @api private
        #
        def match?(mutation)
          !!(regexp =~ mutation.identification)
        end

      end # Regexp
    end # Filter
  end # Mutation
end # Mutant

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.3.0.rc1 lib/mutant/mutation/filter/regexp.rb
mutant-0.3.0.beta22 lib/mutant/mutation/filter/regexp.rb