Use concord to cleanup regexp mutation filter

This commit is contained in:
Markus Schirp 2013-06-14 21:05:52 +02:00
parent db2e5a5ff5
commit adc3e4aacf

View file

@ -3,6 +3,7 @@ module Mutant
class Filter
# Mutaiton filter filtering in regexp match on mutation identification
class Regexp < self
include Concord::Public.new(:regexp)
# Test for match
#
@ -17,21 +18,7 @@ module Mutant
# @api private
#
def match?(mutation)
!!(@regexp =~ mutation.identification)
end
private
# Initialize regexp filter
#
# @param [Regexp] regexp
#
# @return [undefined]
#
# @api private
#
def initialize(regexp)
@regexp = regexp
!!(regexp =~ mutation.identification)
end
end # Regexp