Method: Mongoid::Matcher::ExpressionOperator.get
- Defined in:
- lib/mongoid/matcher/expression_operator.rb
.get(op) ⇒ Module
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the matcher module for a given operator.
26 27 28 29 30 |
# File 'lib/mongoid/matcher/expression_operator.rb', line 26 module_function def get(op) MAP.fetch(op) rescue KeyError raise Errors::InvalidExpressionOperator.new(op) end |