Server IP : 111.118.215.189 / Your IP : 216.73.216.153 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Proc/ |
[ Home ] | [ C0mmand ] | [ 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