Class: MemDB::Field::Negative::NegativeMatching

Inherits:
Object
  • Object
show all
Includes:
Matching
Defined in:
lib/mem_db/field/negative.rb

Instance Method Summary collapse

Constructor Details

#initialize(original) ⇒ NegativeMatching

Returns a new instance of NegativeMatching.



14
15
16
# File 'lib/mem_db/field/negative.rb', line 14

def initialize(original)
  @original = original
end

Instance Method Details

#match?(query) ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/mem_db/field/negative.rb', line 18

def match?(query)
  !@original.match?(query)
end