Sha256: a6a36632a7a603598a1e436c2988d2faee74fe0d200938d0caa9594a01b4799c

Contents?: true

Size: 220 Bytes

Versions: 8

Compression:

Stored size: 220 Bytes

Contents

class TrueClass
  def <=>(o)
    o.is_a?(TrueClass) ? 0 : -1
  end
end

class FalseClass
  def <=>(o)
    o.is_a?(FalseClass) ? 0 : 1
  end
end

class NilClass #:nodoc:
  def <=>(other)
    other.nil? ? 0 : -1;
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jactive_support-3.0.0.pre2 lib/jactive_support/core_ext/ordering.rb
jactive_support-3.0.0.pre1 lib/jactive_support/core_ext/ordering.rb
jactive_support-2.1.1 lib/jactive_support/core_ext/ordering.rb
jactive_support-2.1.0 lib/jactive_support/core_ext/ordering.rb
jactive_support-2.0.0 lib/jactive_support/core_ext/ordering.rb
jactive_support-1.0.2 lib/jactive_support/core_ext/ordering.rb
jactive_support-1.0.1-universal-java-1.6 lib/jactive_support/core_ext/ordering.rb
jactive_support-1.0.0-universal-java-1.6 lib/jactive_support/core_ext/ordering.rb