Module: Mongoid::Extensions::FalseClass::Equality
- Included in:
- FalseClass
- Defined in:
- lib/mongoid/extensions/false_class/equality.rb
Overview
Adds equality hooks for false values.
Instance Method Summary collapse
-
#is_a?(other) ⇒ true, false
Is the passed value a boolean?.
Instance Method Details
#is_a?(other) ⇒ true, false
Is the passed value a boolean?
19 20 21 22 |
# File 'lib/mongoid/extensions/false_class/equality.rb', line 19 def is_a?(other) return true if other.name == "Boolean" super(other) end |