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
/
Object
/
//opt/alt/ruby21/share/ri/2.1.0/system/Object/methods-i.ri
U:RDoc::AnyMethod[iI"methods:ETI"Object#methods;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DReturns a list of the names of public and protected methods of ;FI"A<i>obj</i>. This will include all the methods accessible in ;FI"<i>obj</i>'s ancestors. ;FI"CIf the <i>regular</i> parameter is set to <code>false</code>, ;FI"GReturns an array of obj's public and protected singleton methods, ;FI"Jthe array will not include methods in modules included in <i>obj</i>.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Klass ;TI" def klass_method() ;TI" end ;TI" end ;TI"k = Klass.new ;TI"9k.methods[0..9] #=> [:klass_method, :nil?, :===, ;TI"- # :==~, :!, :eql? ;TI"D # :hash, :<=>, :class, :singleton_class] ;TI"k.methods.length #=> 57 ;TI" ;TI"k.methods(false) #=> [] ;TI"!def k.singleton_method; end ;TI"0k.methods(false) #=> [:singleton_method] ;TI" ;TI"$module M123; def m123; end end ;TI"k.extend M123 ;TI"/k.methods(false) #=> [:singleton_method];T:@format0: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"+obj.methods(regular=true) -> array ;F0[ I" (p1);T@'FI"Object;TcRDoc::NormalClass00