Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Object/methods-i.ri
Arrière
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"9If the optional parameter is <code>false</code>, it ;FI"Mreturns an array of <i>obj<i>'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 #=> 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
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages