module Mongoid::Extensions::TrueClass
def __sortable__
-
(Integer)- 1.
Other tags:
- Example: Get the object as sort criteria. -
def __sortable__ 1 end
def is_a?(other)
-
(true | false)- If the other is a boolean.
Parameters:
-
other(Class) -- The class to check.
Other tags:
- Example: Is the value a boolean type? -
def is_a?(other) if other == Mongoid::Boolean || other.class == Mongoid::Boolean return true end super(other) end