模块:Mongoid::Matchable
Overview
此模块包含MongoDB选择器的Ruby实现的所有行为。
实例方法摘要折叠
-
# _matches? (选择器)→ true | false
确定此文档是否具有与提供的 MongoDB 选择器匹配的属性。
实例方法详细信息
# _matches? (选择器)→ true | false
确定此文档是否具有与提供的MongoDB选择器匹配的属性。 用于匹配嵌入式关联。
20 21 22 |
# File 'lib/mongoid/matchable.rb', line 20 def _matches?(选择器) 匹配器::表达式(expression).匹配?(self, 选择器) end |