Sha256: f426096a48855ed76c9e1033669e3d69ff02d82bce5d9462fb0c92bfd9fd894b

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 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

class String
  def <=>(b)
    b.nil? ? 1 : super
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jactive_support-3.0.0 lib/jactive_support/core_ext/ordering.rb