Sha256: 15ef65fecacf6e81b138502819edbd4a4fc23eaafa5811f5f7459b416a8cbef0

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

class StringInfinity < String
  def -@
    String::INFINITY_NEGATIVE
  end

  def ==(value)
    self.class == value.class
  end
end

class StringInfinityNegative < StringInfinity; end

String::INFINITY = StringInfinity.new
String::INFINITY_NEGATIVE = StringInfinityNegative.new

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yap-1.4.0 lib/string_infinity.rb