opal/corelib/complex.rb in opal-1.8.0.alpha1 vs opal/corelib/complex.rb in opal-1.8.0.beta1
- old
+ new
@@ -178,10 +178,10 @@
def finite?
@real.finite? && @imag.finite?
end
def hash
- "Complex:#{@real}:#{@imag}"
+ [::Complex, @real, @imag].hash
end
def infinite?
@real.infinite? || @imag.infinite?
end