JezK
Edit File: 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"/[ 1, 2, 3 ].collect(&meth) #=> [1, 4, 9];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@7[I"[];T@7[I" arity;T@7[I" call;T@7[I" clone;T@7[I" curry;T@7[I" eql?;T@7[I" hash;T@7[I"inspect;T@7[I" name;T@7[I"original_name;T@7[I" owner;T@7[I"parameters;T@7[I" receiver;T@7[I"source_location;T@7[I"super_method;T@7[I"to_proc;T@7[I" to_s;T@7[I"unbind;T@7[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@"@"cRDoc::TopLevel