Class: DataMapper::Query::Conditions::NullOperation
- Inherits:
-
AbstractOperation
- Object
- AbstractOperation
- DataMapper::Query::Conditions::NullOperation
- Defined in:
- lib/dm-core/query/conditions/operation.rb
Overview
class NotOperation
Instance Attribute Summary
Attributes inherited from AbstractOperation
Instance Method Summary collapse
-
#inspect ⇒ String
Inspecting the operation should return the same as nil.
-
#matches?(record) ⇒ true
Match the record.
-
#nil? ⇒ true
Treat the operation the same as nil.
-
#valid? ⇒ true
Test validity of the operation.
Methods inherited from AbstractOperation
#<<, descendants, #each, inherited, #slug, slug, #sorted_operands
Methods included from Equalizer
Instance Method Details
#inspect ⇒ String
Inspecting the operation should return the same as nil
241 242 243 |
# File 'lib/dm-core/query/conditions/operation.rb', line 241 def inspect 'nil' end |
#matches?(record) ⇒ true
Match the record
211 212 213 |
# File 'lib/dm-core/query/conditions/operation.rb', line 211 def matches?(record) true end |
#nil? ⇒ true
Treat the operation the same as nil
231 232 233 |
# File 'lib/dm-core/query/conditions/operation.rb', line 231 def nil? true end |
#valid? ⇒ true
Test validity of the operation
221 222 223 |
# File 'lib/dm-core/query/conditions/operation.rb', line 221 def valid? true end |