Class: DataMapper::Query::Conditions::AndOperation
- Inherits:
-
AbstractOperation
- Object
- AbstractOperation
- DataMapper::Query::Conditions::AndOperation
- Includes:
- FlattenOperation
- Defined in:
- lib/dm-core/query/conditions/operation.rb
Overview
module FlattenOperation
Instance Attribute Summary
Attributes inherited from AbstractOperation
Instance Method Summary collapse
-
#matches?(record) ⇒ true
Match the record.
-
#minimize ⇒ self, ...
Minimize the operation.
Methods included from FlattenOperation
Methods inherited from AbstractOperation
#<<, #clear, descendants, #difference, #each, #empty?, #first, inherited, #intersection, #merge, #negated?, #one?, #slug, slug, #sorted_operands, #to_s, #union, #valid?
Methods included from Equalizer
Methods included from Assertions
Instance Method Details
#matches?(record) ⇒ true
Match the record
460 461 462 |
# File 'lib/dm-core/query/conditions/operation.rb', line 460 def matches?(record) all? { |op| op.respond_to?(:matches?) ? op.matches?(record) : true } end |