⚝
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
/
Method
/
View File Name :
arity-i.ri
U:RDoc::AnyMethod[iI" arity:ETI"Method#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::BlankLine o: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"Method;TcRDoc::NormalClass00