HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/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"Karguments, returns -n-1, where n is the number of required arguments. ;TI"KKeyword arguments will be considered as a single additional argument, ;TI"Ithat argument being mandatory if any keyword argument is mandatory. ;TI">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"!  def seven(a, b, x:0); end
;TI"  def eight(x:, y:); end
;TI""  def nine(x:, y:, **z); end
;TI"   def ten(*a, x:, y:); 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"%c.method(:seven).arity   #=> -3
;TI"$c.method(:eight).arity   #=> 1
;TI"$c.method(:nine).arity    #=> 1
;TI"%c.method(:ten).arity     #=> -2
;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@4FI"UnboundMethod;TcRDoc::NormalClass00