⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
Method
/
Edit File: arity-i.ri
U:RDoc::AnyMethod[iI" arity:ETI"Method#arity;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"CReturns an indication of the number of arguments accepted by a;TI"Hmethod. Returns a nonnegative integer for methods that take a fixed;TI"Inumber of arguments. For Ruby methods that take a variable number of;TI"?arguments, returns -n-1, where n is the number of required;TI"Harguments. 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 ;FI" def one; end ;FI" def two(a); end ;FI" def three(*a); end ;FI" def four(a, b); end ;FI"" def five(a, b, *c); end ;FI"" def six(a, b, *c, &d); end ;FI" end ;FI"c = C.new ;FI"$c.method(:one).arity #=> 0 ;FI"$c.method(:two).arity #=> 1 ;FI"%c.method(:three).arity #=> -1 ;FI"$c.method(:four).arity #=> 2 ;FI"%c.method(:five).arity #=> -3 ;FI"%c.method(:six).arity #=> -3 ;FI" ;FI"*"cat".method(:size).arity #=> 0 ;FI"*"cat".method(:replace).arity #=> 1 ;FI"+"cat".method(:squeeze).arity #=> -1 ;FI"*"cat".method(:count).arity #=> -1;F: @file0I"meth.arity -> fixnum ;T0[ I"();FI"proc.c;T
Simpan