instance method Complex#==

self == other -> bool[permalink][rdoc][edit]

数値として等しいか判定します。

[PARAM] other:
自身と比較する数値


Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1          # => true