Class: FalseClass
- Inherits:
-
Object
- Object
- FalseClass
- Defined in:
- lib/appswarm/tools.rb
Instance Method Summary collapse
-
#<=>(o) ⇒ Object
make booleans sortable.
Instance Method Details
#<=>(o) ⇒ Object
make booleans sortable
233 234 235 236 237 238 239 240 241 242 |
# File 'lib/appswarm/tools.rb', line 233 def <=>(o) case o when FalseClass 0 when TrueClass 1 else 0 end end |