MMCT TEAM
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/UnboundMethod/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/UnboundMethod/arity-i.ri
U:RDoc::AnyMethod[iI"
arity:ETI"UnboundMethod#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::BlankLineo: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"UnboundMethod;TcRDoc::NormalClass00

MMCT - 2023