Module: Mongoid::Matchable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Composable
- Defined in:
- build/mongoid-8.1/lib/mongoid/matchable.rb
Overview
This module contains all the behavior for Ruby implementations of MongoDB selectors.
Instance Method Summary collapse
-
#_matches?(selector) ⇒ true | false
Determines if this document has the attributes to match the supplied MongoDB selector.
Instance Method Details
#_matches?(selector) ⇒ true | false
Determines if this document has the attributes to match the supplied MongoDB selector. Used for matching on embedded associations.
19 20 21 |
# File 'build/mongoid-8.1/lib/mongoid/matchable.rb', line 19 def _matches?(selector) Matcher::Expression.matches?(self, selector) end |