Class: TheArrayComparator::SearchingStrategies::IsNotEqual
- Defined in:
- lib/the_array_comparator/searching_strategies/is_not_equal.rb
Overview
strategy is not equal
Instance Method Summary collapse
-
#initialize(sample = Sample.new) ⇒ IsNotEqual
constructor
Create a new instance of strategy.
-
#success? ⇒ Boolean
Check the keywords with the data.
Constructor Details
#initialize(sample = Sample.new) ⇒ IsNotEqual
Create a new instance of strategy
13 14 15 16 17 |
# File 'lib/the_array_comparator/searching_strategies/is_not_equal.rb', line 13 def initialize(sample=Sample.new) super warning_unsupported_exceptions end |
Instance Method Details
#success? ⇒ Boolean
Check the keywords with the data
23 24 25 26 27 |
# File 'lib/the_array_comparator/searching_strategies/is_not_equal.rb', line 23 def success? return true if @keywords.to_a != @data false end |