module Mongoid::Criteria::Queryable::Extensions::Symbol
Adds query type-casting behavior to Symbol
class.
Public Instance Methods
__expr_part__(value, negating = false)
click to toggle source
Get the symbol as a specification.
@example Get the symbol as a criteria.
:field.__expr_part__(value)
@param [ Object
] value The value of the criteria. @param [ true | false ] negating If the selection should be negated.
@return [ Hash
] The selection.
# File lib/mongoid/criteria/queryable/extensions/symbol.rb, line 21 def __expr_part__(value, negating = false) ::String.__expr_part__(self, value, negating) end