⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Proc
/
Edit File: 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"KKeyword arguments will be considered as a single additional argument, ;TI"Ithat argument being mandatory if any keyword argument is mandatory. ;TI"BA #proc with no argument declarations is the same as a block ;TI"0declaring <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 { |a=0| }.arity #=> 0 ;TI"+lambda { |a=0| }.arity #=> -1 ;TI"+proc { |a=0, b| }.arity #=> 1 ;TI"+lambda { |a=0, b| }.arity #=> -2 ;TI"+proc { |a=0, b=0| }.arity #=> 0 ;TI"+lambda { |a=0, b=0| }.arity #=> -1 ;TI"+proc { |a, b=0| }.arity #=> 1 ;TI"+lambda { |a, b=0| }.arity #=> -2 ;TI"+proc { |(a, b), c=0| }.arity #=> 1 ;TI"+lambda { |(a, b), c=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
Simpan