Class: DataMapper::Query::Conditions::OrOperation
- Inherits:
-
AbstractOperation
- Object
- AbstractOperation
- DataMapper::Query::Conditions::OrOperation
- Includes:
- FlattenOperation
- Defined in:
- lib/dm-core/query/conditions/operation.rb
Overview
class AndOperation
Instance Attribute Summary
Attributes inherited from AbstractOperation
Instance Method Summary collapse
-
#matches?(record) ⇒ Boolean
TODO: document.
Methods included from FlattenOperation
Methods inherited from AbstractOperation
#<<, descendants, #each, inherited, #inspect, #slug, slug, #sorted_operands, #valid?
Methods included from Equalizer
Instance Method Details
#matches?(record) ⇒ Boolean
TODO: document
166 167 168 |
# File 'lib/dm-core/query/conditions/operation.rb', line 166 def matches?(record) @operands.any? { |operand| operand.matches?(record) } end |