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"Aobj. This will include all the methods accessible in ;FI"obj's ancestors. ;FI"9If the optional parameter is false, it ;FI"Mreturns an array of obj's public and protected singleton methods, ;FI"Jthe array will not include methods in modules included in obj.;Fo:RDoc::Markup::BlankLineo: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 #=> 56 ;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" (*args);T@'FI" Object;TcRDoc::NormalClass00