lib/string_infinity.rb

Summary

Maintainability
A
0 mins
Test Coverage
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