Module: Mongoid::Criteria::Queryable::Extensions::Symbol
- Defined in:
- build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/symbol.rb
Overview
This module contains additional symbol behavior.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#__expr_part__(value, negating = false) ⇒ Hash
Get the symbol as a specification.
-
#to_direction ⇒ Integer
Get the symbol as a sort direction.
Instance Method Details
#__expr_part__(value, negating = false) ⇒ Hash
Get the symbol as a specification.
23 24 25 |
# File 'build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/symbol.rb', line 23 def __expr_part__(value, negating = false) ::String.__expr_part__(self, value, negating) end |
#to_direction ⇒ Integer
Get the symbol as a sort direction.
35 36 37 |
# File 'build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/symbol.rb', line 35 def to_direction to_s.to_direction end |