Sha256: 2774286940efc5c64d4fd141275c5bf6d8d6c3ddee1569c115bdc3d320f236fa

Contents?: true

Size: 530 Bytes

Versions: 11

Compression:

Stored size: 530 Bytes

Contents

# encoding: utf-8

module Mutant
  class Predicate
    # Blacklist predicate
    class Blacklist < self
      include Adamantium::Flat, Concord.new(:blacklist)

      # Test for match
      #
      # @param [Object] object
      #
      # @return [true]
      #   if object matches blacklist
      #
      # @return [false]
      #   otherwise
      #
      # @api private
      #
      def match?(object)
        blacklist.none? { |predicate| predicate.match?(object) }
      end

    end # Whitelist
  end # Filter
end # Mutant

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mutant-0.3.6 lib/mutant/predicate/blacklist.rb
mutant-0.3.5 lib/mutant/predicate/blacklist.rb
mutant-0.3.4 lib/mutant/predicate/blacklist.rb
mutant-0.3.3 lib/mutant/predicate/blacklist.rb
mutant-0.3.2 lib/mutant/predicate/blacklist.rb
mutant-0.3.1 lib/mutant/predicate/blacklist.rb
mutant-0.3.0 lib/mutant/predicate/blacklist.rb
mutant-0.3.0.rc5 lib/mutant/predicate/blacklist.rb
mutant-0.3.0.rc4 lib/mutant/predicate/blacklist.rb
mutant-0.3.0.rc3 lib/mutant/predicate/blacklist.rb
mutant-0.3.0.rc2 lib/mutant/predicate/blacklist.rb