模块:Mongoid::Matcher::ExpressionOperator Private

定义于:
lib/mongoid/matcher/expression_operator.rb

Overview

该模块是私有 API 的一部分。 您应尽可能避免使用此模块,因为它将来可能会被删除或更改。

Singleton 模块提供逻辑查询运算符匹配器的查找。

常量摘要折叠

MAP =

此常量是私有 API 的一部分。 应尽可能避免使用此常量,因为它将来可能会被删除或更改。

{
  ' $and ' => ,
  ' $nor ' => Nor,
  ' $or ' => ,
}.冻结

类方法摘要折叠

类方法详细信息

.get(op) ⇒ Module

此方法是私有 API 的一部分。 您应尽可能避免使用此方法,因为它将来可能会被删除或更改。

返回给定操作符的匹配器模块。

参数:

  • op ( string )

    操作符名称。

返回:

  • (模块)

    匹配器模块。



26
27
28
29
30
# File 'lib/mongoid/matcher/expression_operator.rb', line 26

module_function def 获取(op)
  映射(map).获取(op)
救援 KeyError
  提高 Errors::InvalidExpressionOperator.new(op)
end