|
|
||
---------------------------------------------------- Object#instance_of? obj.instance_of?(class) => true or false ------------------------------------------------------------------------ Returns true if _obj_ is an instance of the given class. See also Object#kind_of? .
Object#instance_of? --- instance_of?(klass) self がクラス klass の直接のインスタンスである時、 真を返します。obj.instance_of?(c) が成立する時には、常に obj.kind_of?(c) も成立します。