[DOC] Tweaks for Array#length
This commit is contained in:
parent
99620b98ba
commit
9f47f0eb3c
Notes:
git
2024-10-02 17:19:47 +00:00
10
array.c
10
array.c
@ -2725,9 +2725,15 @@ rb_ary_reverse_each(VALUE ary)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* array.length -> an_integer
|
||||
* length -> integer
|
||||
* size -> integer
|
||||
*
|
||||
* Returns the count of elements in +self+.
|
||||
* Returns the count of elements in +self+:
|
||||
*
|
||||
* [0, 1, 2].length # => 3
|
||||
* [].length # => 0
|
||||
*
|
||||
* Related: see {Methods for Querying}[rdoc-ref:Array@Methods+for+Querying].
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user