module Mongoid::Criteria::Queryable::Extensions::Boolean::ClassMethods
Public Instance Methods
evolve(object)
click to toggle source
Evolve the value into a boolean value stored in MongoDB. Will return true for any of these values: true, t, yes, y, 1, 1.0.
@example Evolve the value to a boolean.
Boolean.evolve(true)
@param [ Object
] object The object to evolve.
@return [ true | false ] The boolean value.
# File lib/mongoid/criteria/queryable/extensions/boolean.rb, line 22 def evolve(object) __evolve__(object) do |obj| mongoize(obj) end end