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