Sha256: 32e9763d0070ac01aa86dce06e74854f9af8f51396ee7dc665134447c24ef1ef
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
#encoding: utf-8 # the main module module TheArrayComparator # the available strategies module Strategies #strategy contains class ContainsAny < Base # Create a new instance of strategy # # @see Base def initialize(sample=Sample.new) super warning_unsupported_exceptions end # Check the keywords with the data # # @return [Boolean] # The result of the check def success? return true if @keywords.blank? and @data.blank? if ( @keywords & @data ).blank? return false else return true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
the_array_comparator-0.2.0 | lib/the_array_comparator/strategies/contains_any.rb |
the_array_comparator-0.1.1 | lib/the_array_comparator/strategies/contains_any.rb |