self == other -> bool
数値として等しいか判定します。
例 Complex(2, 1) == Complex(1) # => false Complex(1, 0) == Complex(1) # => true Complex(1, 0) == 1 # => true
Complex(2, 1) == Complex(1) # => false Complex(1, 0) == Complex(1) # => true Complex(1, 0) == 1 # => true