%PDF- %PDF-
Mini Shell

Mini Shell

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

U:RDoc::AnyMethod[iI"
arity:ETI"Proc#arity;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"=Returns the number of mandatory arguments. If the block ;TI"His declared to take no arguments, returns 0. If the block is known ;TI"-to take exactly n arguments, returns n. ;TI"GIf the block has optional arguments, returns -n-1, where n is the ;TI"Gnumber of mandatory arguments, with the exception for blocks that ;TI"Jare not lambdas and have only a finite number of optional arguments; ;TI"%in this latter case, returns n. ;TI"IKeywords arguments will considered as a single additional argument, ;TI"Ithat argument being mandatory if any keyword argument is mandatory. ;TI"7A <code>proc</code> with no argument declarations ;TI"Gis the same as a block declaring <code>||</code> as its arguments.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"+proc {}.arity                  #=>  0
;TI"+proc { || }.arity              #=>  0
;TI"+proc { |a| }.arity             #=>  1
;TI"+proc { |a, b| }.arity          #=>  2
;TI"+proc { |a, b, c| }.arity       #=>  3
;TI"+proc { |*a| }.arity            #=> -1
;TI"+proc { |a, *b| }.arity         #=> -2
;TI"+proc { |a, *b, c| }.arity      #=> -3
;TI"+proc { |x:, y:, z:0| }.arity   #=>  1
;TI"+proc { |*a, x:, y:0| }.arity   #=> -2
;TI"
;TI"+proc   { |x=0| }.arity         #=>  0
;TI"+lambda { |x=0| }.arity         #=> -1
;TI"+proc   { |x=0, y| }.arity      #=>  1
;TI"+lambda { |x=0, y| }.arity      #=> -2
;TI"+proc   { |x=0, y=0| }.arity    #=>  0
;TI"+lambda { |x=0, y=0| }.arity    #=> -1
;TI"+proc   { |x, y=0| }.arity      #=>  1
;TI"+lambda { |x, y=0| }.arity      #=> -2
;TI"+proc   { |(x, y), z=0| }.arity #=>  1
;TI"+lambda { |(x, y), z=0| }.arity #=> -2
;TI"+proc   { |a, x:0, y:0| }.arity #=>  1
;TI"*lambda { |a, x:0, y:0| }.arity #=> -2;T:@format0:
@fileI"proc.c;T:0@omit_headings_from_table_of_contents_below0I"prc.arity -> integer
;T0[I"();T@2FI"	Proc;TcRDoc::NormalClass00

Zerion Mini Shell 1.0