Sha256: fe4e251cf36a2f8c7c3a614bf2c4115bb4290e55b39a30fcd2afbb9809085bf0
Contents?: true
Size: 992 Bytes
Versions: 6
Compression:
Stored size: 992 Bytes
Contents
module Mutant class Mutation class Filter # Whiltelist filter class Whitelist < self include Adamantium::Flat, Equalizer.new(:whitelist) # Test for match # # @param [Mutation] mutation # # @return [true] # returns true if mutation matches whitelist # # @return [false] # returns false otherwise # # @api private # def match?(mutation) @whitelist.any? { |filter| filter.match?(mutation) } end # Return whitelist # # @return [Enumerable<Filter>] # # @api private # attr_reader :whitelist private # Initalize white list # # @param [Enumerable<Filter>] whitelist # # @return [undefined] # # @api private # def initialize(whitelist) @whitelist = whitelist end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems