Class: MemDB::Field::Negative::NegativeMatching
- Inherits:
-
Object
- Object
- MemDB::Field::Negative::NegativeMatching
- Includes:
- Matching
- Defined in:
- lib/mem_db/field/negative.rb
Instance Method Summary collapse
-
#initialize(original) ⇒ NegativeMatching
constructor
A new instance of NegativeMatching.
- #match?(query) ⇒ Boolean
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
18 19 20 |
# File 'lib/mem_db/field/negative.rb', line 18 def match?(query) !@original.match?(query) end |