Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.6
/
usr
/
share
/
ri
/
2.6.0
/
system
/
Method
/
//proc/212/root/proc/thread-self/root/opt/ruby-2.6/usr/share/ri/2.6.0/system/Method/cdesc-Method.ri
U:RDoc::NormalClass[iI"Method:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"GMethod objects are created by <code>Object#method</code>, and are ;TI"Gassociated with a particular object (not just with a class). They ;TI"Hmay be used to invoke the method within the object, and as a block ;TI"Dassociated with an iterator. They may also be unbound from one ;TI"Bobject (creating an <code>UnboundMethod</code>) and bound to ;TI" 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[@(@(cRDoc::TopLevel