Sha256: e19f2ed12dc06e517cf81727ab938ddc846855dfb2d00e25c6163038c2a15207

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

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

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

class StringInfinityNegative < StringInfinity; end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yap-2.0.0 lib/string_infinity.rb
yap-1.4.2 lib/string_infinity.rb