| 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/Method/ |
Upload File : |
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"@arguments, returns -n-1, where n is the number of required ;TI"Iarguments. 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" 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" ;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@*FI"Method;TcRDoc::NormalClass00