self == other -> bool[permalink][rdoc][edit](untyped) → bool-
selfが数値としてotherと等しければtrueを、そうでなければfalseを返します。otherが数値でないときはfalseを返します。Complexオブジェクトを左項とする比較演算子==はこのメソッドの呼び出しになります。- [PARAM]
other: - 比較対象
p Complex(2, 1) == Complex(1) # => false p Complex(1, 0) == Complex(1) # => true p Complex(1, 0) == 1 # => true p Complex(1, 0) == 1.0 # => true - [PARAM]