[DOC] Tweaks for Hash#size
This commit is contained in:
parent
ce66eea167
commit
5de02d6487
Notes:
git
2025-03-04 14:22:37 +00:00
4
hash.c
4
hash.c
@ -3007,13 +3007,13 @@ rb_hash_replace(VALUE hash, VALUE hash2)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* length -> integer
|
||||
* size -> integer
|
||||
*
|
||||
* Returns the count of entries in +self+:
|
||||
*
|
||||
* {foo: 0, bar: 1, baz: 2}.length # => 3
|
||||
* {foo: 0, bar: 1, baz: 2}.size # => 3
|
||||
*
|
||||
* Related: see {Methods for Querying}[rdoc-ref:Hash@Methods+for+Querying].
|
||||
*/
|
||||
|
||||
VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user