| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Proc/ |
Upload File : |
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::BlankLine o: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