%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/UnboundMethod/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/UnboundMethod/arity-i.ri

U:RDoc::AnyMethod[iI"
arity:ETI"UnboundMethod#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    -> integer
;T0[I"();T@*FI"UnboundMethod;TcRDoc::NormalClass00

Zerion Mini Shell 1.0