REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.25 KB
Close
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Method/arity-i.yaml
Text
Base64
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns an indication of the number of arguments accepted by a method. Returns a nonnegative integer for methods that take a fixed number of arguments. For Ruby methods that take a variable number of arguments, returns -n-1, where n is the number of required arguments. For methods written in C, returns -1 if the call takes a variable number of arguments. - !ruby/struct:SM::Flow::VERB body: " class C\n def one; end\n def two(a); end\n def three(*a); end\n def four(a, b); end\n def five(a, b, *c); end\n def six(a, b, *c, &d); end\n end\n c = C.new\n c.method(:one).arity #=> 0\n c.method(:two).arity #=> 1\n c.method(:three).arity #=> -1\n c.method(:four).arity #=> 2\n c.method(:five).arity #=> -3\n c.method(:six).arity #=> -3\n\n "cat".method(:size).arity #=> 0\n "cat".method(:replace).arity #=> 1\n "cat".method(:squeeze).arity #=> -1\n "cat".method(:count).arity #=> -1\n" full_name: Method#arity is_singleton: false name: arity params: | meth.arity => fixnum visibility: public
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
%3d%3d-i.yaml
326 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
%5b%5d-i.yaml
484 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
arity-i.yaml
1.25 KB
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
call-i.yaml
486 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cdesc-Method.yaml
1.25 KB
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
clone-i.yaml
225 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
inspect-i.yaml
435 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
name-i.yaml
255 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
owner-i.yaml
288 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
receiver-i.yaml
284 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
to_proc-i.yaml
290 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
to_s-i.yaml
429 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
unbind-i.yaml
418 B
lrw-r--r--
2023-07-26 13:47:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).