ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- owner-i.ri000064400000000532152362207050006462 0ustar00U:RDoc::AnyMethod[iI" owner:ETI"Method#owner;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"9Returns the class or module that defines the method.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"&meth.owner -> class_or_module ;T0[I"();T@FI" Method;TcRDoc::NormalClass00source_location-i.ri000064400000000715152362207050010523 0ustar00U:RDoc::AnyMethod[iI"source_location:ETI"Method#source_location;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MReturns the Ruby source filename and line number containing this method ;TI"@or nil if this method was not defined in Ruby (i.e. native);T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"/meth.source_location -> [String, Fixnum] ;T0[I"();T@FI" Method;TcRDoc::NormalClass00inspect-i.ri000064400000000722152362207050006776 0ustar00U:RDoc::AnyMethod[iI" inspect:ETI"Method#inspect;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"/Returns the name of the underlying method.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"A"cat".method(:count).inspect #=> "#";T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth.inspect -> string;T0[I"();T@FI" Method;TcRDoc::NormalClass00private%3f-i.ri000064400000000521152362207050007276 0ustar00U:RDoc::AnyMethod[iI" private?:ETI"Method#private?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"+Returns whether the method is private.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"$meth.private? -> true or false ;T0[I"();T@FI" Method;TcRDoc::NormalClass00public%3f-i.ri000064400000000515152362207050007105 0ustar00U:RDoc::AnyMethod[iI" public?:ETI"Method#public?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"*Returns whether the method is public.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"#meth.public? -> true or false ;T0[I"();T@FI" Method;TcRDoc::NormalClass00to_proc-i.ri000064400000000540152362207050006774 0ustar00U:RDoc::AnyMethod[iI" to_proc:ETI"Method#to_proc;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EReturns a Proc object corresponding to this method.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth.to_proc -> prc ;T0[I"();T@FI" Method;TcRDoc::NormalClass00eql%3f-i.ri000064400000000722152362207050006410 0ustar00U:RDoc::AnyMethod[iI" eql?:ETI"Method#eql?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"@Two method objects are equal if they are bound to the same ;TI"Mobject and refer to the same method definition and their owners are the ;TI"same class or module.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I",meth.eql?(other_meth) -> true or false;T0[I" (p1);T@FI" Method;TcRDoc::NormalClass00arity-i.ri000064400000002546152362207050006467 0ustar00U:RDoc::AnyMethod[iI" arity:ETI"Method#arity;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"DReturns an indication of the number of arguments accepted by a ;TI"Imethod. Returns a nonnegative integer for methods that take a fixed ;TI"Jnumber of arguments. For Ruby methods that take a variable number of ;TI"@arguments, returns -n-1, where n is the number of required ;TI"Iarguments. For methods written in C, returns -1 if the call takes a ;TI""variable number of arguments.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I" class C ;TI" def one; end ;TI" def two(a); end ;TI" def three(*a); end ;TI" def four(a, b); end ;TI"" def five(a, b, *c); end ;TI"" def six(a, b, *c, &d); end ;TI" end ;TI"c = C.new ;TI"$c.method(:one).arity #=> 0 ;TI"$c.method(:two).arity #=> 1 ;TI"%c.method(:three).arity #=> -1 ;TI"$c.method(:four).arity #=> 2 ;TI"%c.method(:five).arity #=> -3 ;TI"%c.method(:six).arity #=> -3 ;TI" ;TI"*"cat".method(:size).arity #=> 0 ;TI"*"cat".method(:replace).arity #=> 1 ;TI"+"cat".method(:squeeze).arity #=> -1 ;TI"*"cat".method(:count).arity #=> -1;T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth.arity -> fixnum ;T0[I"();T@*FI" Method;TcRDoc::NormalClass00cdesc-Method.ri000064400000001314152362207050007400 0ustar00U:RDoc::NormalClass[iI" Method:ET@I" Object;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I" Method;To:RDoc::Markup::BlankLine: @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" arity;T@&[I" call;T@&[I" clone;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" to_proc;T@&[I" to_s;T@&[I" unbind;T@&[;[[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@@cRDoc::TopLevel%3e%3e-i.ri000064400000001266152362207050006206 0ustar00U:RDoc::AnyMethod[iI">>:ETI"Method#>>;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"SReturns a proc that is the composition of this method and the given g. ;TI"OThe returned proc takes a variable number of arguments, calls this method ;TI"3with them then calls g with the result.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"def f(x) ;TI" x * x ;TI" end ;TI" ;TI"f = self.method(:f) ;TI"g = proc {|x| x + x } ;TI"p (f >> g).call(2) #=> 8;T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth >> g -> a_proc ;T0[I" (p1);T@FI" Method;TcRDoc::NormalClass00super_method-i.ri000064400000000653152362207050010032 0ustar00U:RDoc::AnyMethod[iI"super_method:ETI"Method#super_method;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"MReturns a Method of superclass which would be called when super is used ;TI"0or nil if there is no method on superclass.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I""meth.super_method -> method ;T0[I"();T@FI" Method;TcRDoc::NormalClass00call-i.ri000064400000001031152362207050006236 0ustar00U:RDoc::AnyMethod[iI" call:ETI"Method#call;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IInvokes the meth with the specified arguments, returning the ;TI"method's return value.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"m = 12.method("+") ;TI"m.call(3) #=> 15 ;TI"m.call(20) #=> 32;T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"#meth.call(args, ...) -> obj;T0[I" (*args);T@FI" Method;TcRDoc::NormalClass00%5b%5d-i.ri000064400000001025152362207050006177 0ustar00U:RDoc::AnyMethod[iI"[]:ETI"Method#[];TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IInvokes the meth with the specified arguments, returning the ;TI"method's return value.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"m = 12.method("+") ;TI"m.call(3) #=> 15 ;TI"m.call(20) #=> 32;T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"#meth[args, ...] -> obj;T0[I" (*args);T@FI" Method;TcRDoc::NormalClass00protected%3f-i.ri000064400000000531152362207050007616 0ustar00U:RDoc::AnyMethod[iI"protected?:ETI"Method#protected?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-Returns whether the method is protected.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"&meth.protected? -> true or false ;T0[I"();T@FI" Method;TcRDoc::NormalClass00unbind-i.ri000064400000000757152362207050006620 0ustar00U:RDoc::AnyMethod[iI" unbind:ETI"Method#unbind;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"FDissociates meth from its current receiver. The resulting ;TI"JUnboundMethod can subsequently be bound to a new object ;TI"8of the same class (see UnboundMethod).;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"&meth.unbind -> unbound_method ;T0[I"();T@FI" Method;TcRDoc::NormalClass00to_s-i.ri000064400000000714152362207050006276 0ustar00U:RDoc::AnyMethod[iI" to_s:ETI"Method#to_s;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"/Returns the name of the underlying method.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"A"cat".method(:count).inspect #=> "#";T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth.to_s -> string;T0[I"();T@FI" Method;TcRDoc::NormalClass00name-i.ri000064400000000471152362207050006252 0ustar00U:RDoc::AnyMethod[iI" name:ETI"Method#name;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"$Returns the name of the method.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth.name -> symbol ;T0[I"();T@FI" Method;TcRDoc::NormalClass00receiver-i.ri000064400000000526152362207050007137 0ustar00U:RDoc::AnyMethod[iI" receiver:ETI"Method#receiver;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"5Returns the bound receiver of the method object.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I" meth.receiver -> object ;T0[I"();T@FI" Method;TcRDoc::NormalClass00%3d%3d%3d-i.ri000064400000001003152362207050006465 0ustar00U:RDoc::AnyMethod[iI"===:ETI"Method#===;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IInvokes the meth with the specified arguments, returning the ;TI"method's return value.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"m = 12.method("+") ;TI"m.call(3) #=> 15 ;TI"m.call(20) #=> 32;T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@FI" Method;TcRDoc::NormalClass0[@FI" call;Tclone-i.ri000064400000001063152362207050006430 0ustar00U:RDoc::AnyMethod[iI" clone:ETI"Method#clone;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"$Returns a clone of this method.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I" class A ;TI" def foo ;TI" return "bar" ;TI" end ;TI" end ;TI" ;TI"m = A.new.method(:foo) ;TI"m.call # => "bar" ;TI" n = m.clone.call # => "bar";T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I" method.clone -> new_method ;T0[I"();T@FI" Method;TcRDoc::NormalClass00curry-i.ri000064400000002513152362207050006475 0ustar00U:RDoc::AnyMethod[iI" curry:ETI"Method#curry;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"ZReturns a curried proc based on the method. When the proc is called with a number of ;TI"]arguments that is lower than the method's arity, then another curried proc is returned. ;TI"]Only when enough arguments have been supplied to satisfy the method signature, will the ;TI"method actually be called.;To:RDoc::Markup::BlankLineo; ; [I"VThe optional arity argument should be supplied when currying methods with ;TI"Xvariable arguments to determine how many arguments are needed before the method is ;TI" called.;T@o:RDoc::Markup::Verbatim; [I"def foo(a,b,c) ;TI" [a, b, c] ;TI" end ;TI" ;TI"%proc = self.method(:foo).curry ;TI"2proc2 = proc.call(1, 2) #=> # ;TI"2proc2.call(3) #=> [1,2,3] ;TI" ;TI"def vararg(*args) ;TI" args ;TI" end ;TI" ;TI"*proc = self.method(:vararg).curry(4) ;TI",proc2 = proc.call(:x) #=> # ;TI",proc3 = proc2.call(:y, :z) #=> # ;TI"4proc3.call(:a) #=> [:x, :y, :z, :a];T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"9meth.curry -> proc meth.curry(arity) -> proc ;T0[I" (*args);T@)FI" Method;TcRDoc::NormalClass00%3c%3c-i.ri000064400000001267152362207050006203 0ustar00U:RDoc::AnyMethod[iI"<<:ETI"Method#<<;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"SReturns a proc that is the composition of this method and the given g. ;TI"VThe returned proc takes a variable number of arguments, calls g with them ;TI",then calls this method with the result.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"def f(x) ;TI" x * x ;TI" end ;TI" ;TI"f = self.method(:f) ;TI"g = proc {|x| x + x } ;TI"p (f << g).call(2) #=> 16;T: @format0: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth << g -> a_proc ;T0[I" (p1);T@FI" Method;TcRDoc::NormalClass00original_name-i.ri000064400000000535152362207050010137 0ustar00U:RDoc::AnyMethod[iI"original_name:ETI"Method#original_name;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-Returns the original name of the method.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"%meth.original_name -> symbol ;T0[I"();T@FI" Method;TcRDoc::NormalClass00parameters-i.ri000064400000000532152362207050007473 0ustar00U:RDoc::AnyMethod[iI"parameters:ETI"Method#parameters;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"6Returns the parameter information of this method.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth.parameters -> array ;T0[I"();T@FI" Method;TcRDoc::NormalClass00%3d%3d-i.ri000064400000000713152362207050006200 0ustar00U:RDoc::AnyMethod[iI"==:ETI"Method#==;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"@Two method objects are equal if they are bound to the same ;TI"Mobject and refer to the same method definition and their owners are the ;TI"same class or module.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I")meth == other_meth -> true or false;T0[I" (p1);T@FI" Method;TcRDoc::NormalClass00hash-i.ri000064400000000522152362207050006252 0ustar00U:RDoc::AnyMethod[iI" hash:ETI"Method#hash;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"=Returns a hash value corresponding to the method object.;T: @fileI" proc.c;T:0@omit_headings_from_table_of_contents_below0I"meth.hash -> integer ;T0[I"();T@FI" Method;TcRDoc::NormalClass00