--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns an array containing the names of public instance methods in the receiver. For a module, these are the public methods; for a class, they are the instance (not singleton) methods. With no argument, or with an argument that is false, the instance methods in mod are returned, otherwise the methods in mod and mod's superclasses are returned. - !ruby/struct:SM::Flow::VERB body: " module A\n def method1() end\n end\n class B\n def method2() end\n end\n class C < B\n def method3() end\n end\n\n A.instance_methods #=> ["method1"]\n B.instance_methods(false) #=> ["method2"]\n C.instance_methods(false) #=> ["method3"]\n C.instance_methods(true).length #=> 43\n" full_name: Module#instance_methods is_singleton: false name: instance_methods params: | mod.instance_methods(include_super=true) => array visibility: public