Class: FalseClass

Inherits:
Object
  • Object
show all
Defined in:
lib/appswarm/tools.rb

Instance Method Summary collapse

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