Module: Mongoid::Extensions::TrueClass
Relationships & Source Files | |
Defined in: | lib/mongoid/extensions/true_class.rb |
Overview
Adds type-casting behavior to TrueClass
Instance Method Summary
- #__sortable__ ⇒ Integer deprecated Deprecated.
-
#is_a?(other) ⇒ true | false
Is the passed value a boolean?
Instance Method Details
#__sortable__ ⇒ Integer
Deprecated.
Get the value of the object as a mongo friendly sort value.
# File 'lib/mongoid/extensions/true_class.rb', line 15
def __sortable__ 1 end
#is_a?(other) ⇒ true
| false
Is the passed value a boolean?