--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns true if class is the class of obj, or if class is one of the superclasses of obj or modules included in obj. - !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