📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 08:34:01
📂
/ (Root)
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Method
📍 /opt/alt/ruby27/share/ri/system/Method
🔄 Refresh
✏️
Editing: cdesc-Method.ri
Read Only
U:RDoc::NormalClass[iI"Method:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"EMethod objects are created by Object#method, and are associated ;TI"Dwith a particular object (not just with a class). They may be ;TI"Aused to invoke the method within the object, and as a block ;TI"Eassociated with an iterator. They may also be unbound from one ;TI"=object (creating an UnboundMethod) and bound to another.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[I"class Thing ;TI" def square(n) ;TI" n*n ;TI" end ;TI" end ;TI"thing = Thing.new ;TI"#meth = thing.method(:square) ;TI" ;TI")meth.call(9) #=> 81 ;TI"0[ 1, 2, 3 ].collect(&meth) #=> [1, 4, 9] ;TI" ;TI"9[ 1, 2, 3 ].each(&method(:puts)) #=> prints 1, 2, 3 ;TI" ;TI"require 'date' ;TI"=%w[2017-03-01 2017-03-02].collect(&Date.method(:parse)) ;TI"s#=> [#<Date: 2017-03-01 ((2457814j,0s,0n),+0s,2299161j)>, #<Date: 2017-03-02 ((2457815j,0s,0n),+0s,2299161j)>];T:@format0: @fileI"proc.c;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[[I"<<;TI"proc.c;T[I"==;T@@[I"===;T@@[I">>;T@@[I"[];T@@[I" arity;T@@[I" call;T@@[I" clone;T@@[I" curry;T@@[I" eql?;T@@[I" hash;T@@[I"inspect;T@@[I" name;T@@[I"original_name;T@@[I" owner;T@@[I"parameters;T@@[I" receiver;T@@[I"source_location;T@@[I"super_method;T@@[I"to_proc;T@@[I" to_s;T@@[I"unbind;T@@[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[I"proc.c;T@'cRDoc::TopLevel
💾 Save Changes
❌ Cancel