Simply blacklist pattern building in matcher

This commit is contained in:
Markus Schirp 2014-06-15 19:16:57 +00:00
parent c45a91534d
commit bdb1d86ea4

View file

@ -6,9 +6,8 @@ module Mutant
include Equalizer.new(:identification)
# Methods within rbx kernel directory are precompiled and their source
# cannot be accessed via reading source location
SKIP_METHODS = %w[kernel/ (eval)].freeze
BLACKLIST = /\A#{Regexp.union(*SKIP_METHODS)}/.freeze
# cannot be accessed via reading source location. Same for methods created by eval.
BLACKLIST = %r{\Akernel/|(eval)}.freeze
# Enumerate matches
#