Sha256: 74fa442d1891e41f1107b766eb437023cc748fb08332d71874f604a58f62e445
Contents?: true
Size: 733 Bytes
Versions: 5
Compression:
Stored size: 733 Bytes
Contents
#encoding: utf-8 # the main module module TheArrayComparator # the available strategies module SearchingStrategies #strategy contains class ContainsAll < 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? return false if @keywords.blank? or @data.blank? if ( @keywords - @data ).blank? return true else return false end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems