= private = protected
==(other)
Test for numerical equality (a == a + 0i).
# File lib/complex.rb, line 319 def == (other) if other.kind_of?(Complex) @real == other.real and @image == other.image elsif Complex.generic?(other) @real == other and @image == 0 else other == self end end