Module: Mongoid::Matcher::Gt Private
- Defined in:
- build/mongoid-7.3/lib/mongoid/matcher/gt.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.matches?(exists, value, condition) ⇒ Boolean
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.
6 7 8 9 10 11 12 13 14 |
# File 'build/mongoid-7.3/lib/mongoid/matcher/gt.rb', line 6 module_function def matches?(exists, value, condition) case condition when Range raise Errors::InvalidQuery, "$gt argument cannot be a Range: #{Errors::InvalidQuery.truncate_expr(condition)}" end FieldOperator.apply_array_field_operator(exists, value, condition) do |v| FieldOperator.apply_comparison_operator(:>, v, condition) end end |