Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > class Complex > coerce
coerce(other) -> [Complex, Complex]
other を Complex に変換して [self, 変換後の other] の配列を返します。
例:
Complex(1).coerce(2) # => [(2+0i), (1+0i)]