mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for Hash#values
This commit is contained in:
parent
4e3bc65e88
commit
dbc1ceca32
Notes:
git
2025-03-29 21:05:12 +00:00
1 changed files with 4 additions and 1 deletions
5
hash.c
5
hash.c
|
@ -3818,9 +3818,12 @@ values_i(VALUE key, VALUE value, VALUE ary)
|
|||
* call-seq:
|
||||
* values -> new_array
|
||||
*
|
||||
* Returns a new Array containing all values in +self+:
|
||||
* Returns a new array containing all values in +self+:
|
||||
*
|
||||
* h = {foo: 0, bar: 1, baz: 2}
|
||||
* h.values # => [0, 1, 2]
|
||||
*
|
||||
* Related: see {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching].
|
||||
*/
|
||||
|
||||
VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue