관리-도구
편집 파일: is_a%3f-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns <tt>true</tt> if <em>class</em> is the class of <em>obj</em>, or if <em>class</em> is one of the superclasses of <em>obj</em> or modules included in <em>obj</em>. - !ruby/struct:SM::Flow::VERB body: " module M; end\n class A\n include M\n end\n class B < A; end\n class C < B; end\n b = B.new\n b.instance_of? A #=> false\n b.instance_of? B #=> true\n b.instance_of? C #=> false\n b.instance_of? M #=> false\n b.kind_of? A #=> true\n b.kind_of? B #=> true\n b.kind_of? C #=> false\n b.kind_of? M #=> true\n" full_name: Object#is_a? is_singleton: false name: is_a? params: | obj.is_a?(class) => true or false obj.kind_of?(class) => true or false visibility: public