Simply blacklist pattern building in matcher
This commit is contained in:
parent
c45a91534d
commit
bdb1d86ea4
1 changed files with 2 additions and 3 deletions
|
@ -6,9 +6,8 @@ module Mutant
|
||||||
include Equalizer.new(:identification)
|
include Equalizer.new(:identification)
|
||||||
|
|
||||||
# Methods within rbx kernel directory are precompiled and their source
|
# Methods within rbx kernel directory are precompiled and their source
|
||||||
# cannot be accessed via reading source location
|
# cannot be accessed via reading source location. Same for methods created by eval.
|
||||||
SKIP_METHODS = %w[kernel/ (eval)].freeze
|
BLACKLIST = %r{\Akernel/|(eval)}.freeze
|
||||||
BLACKLIST = /\A#{Regexp.union(*SKIP_METHODS)}/.freeze
|
|
||||||
|
|
||||||
# Enumerate matches
|
# Enumerate matches
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue