Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > complexライブラリ > Complexクラス > generic?

singleton method Complex.generic?

generic?(other) -> bool

other が Integer Float Rational クラスのオブジェクトかどうか判定します。

[PARAM] other:
判定対象のオブジェクト
[RETURN]
Integer Float Rational クラスのオブジェクトの時 true それ以外の場合には false を返します。
class Complex