Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Module
/
//opt/alt/ruby21/share/ri/2.1.0/system/Module/instance_methods-i.ri
U:RDoc::AnyMethod[iI"instance_methods:ETI"Module#instance_methods;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PReturns an array containing the names of the public and protected instance ;FI"Xmethods in the receiver. For a module, these are the public and protected methods; ;FI"Ifor a class, they are the instance (not singleton) methods. With no ;FI"Cargument, or with an argument that is <code>false</code>, the ;FI"Hinstance methods in <i>mod</i> are returned, otherwise the methods ;FI">in <i>mod</i> and <i>mod</i>'s superclasses are returned.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module A ;TI" def method1() end ;TI" end ;TI" class B ;TI" def method2() end ;TI" end ;TI"class C < B ;TI" def method3() end ;TI" end ;TI" ;TI"6A.instance_methods #=> [:method1] ;TI"6B.instance_methods(false) #=> [:method2] ;TI"6C.instance_methods(false) #=> [:method3] ;TI"-C.instance_methods(true).length #=> 43;T:@format0: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"9mod.instance_methods(include_super=true) -> array ;F0[ I"(*args);T@$FI"Module;TcRDoc::NormalClass00