diff options
author | Burdette Lamar <[email protected]> | 2025-03-25 14:26:51 -0500 |
---|---|---|
committer | <[email protected]> | 2025-03-25 15:26:51 -0400 |
commit | 0b186ed4133c0825047d97341788f77c1dc4df11 () | |
tree | dd779ecda8961b22741976ecf6874da8a0d54caa /hash.c | |
parent | eb3f73ae9c777f233af950c4779a0fb553a2c565 (diff) |
[DOC] Doc for Hash#transform_keys! (#12942)
Notes: Merged-By: peterzhu2118 <[email protected]>
-rw-r--r-- | hash.c | 94 |
1 files changed, 89 insertions, 5 deletions
@@ -3325,13 +3325,97 @@ static int flatten_i(VALUE key, VALUE val, VALUE ary); /* * call-seq: - * transform_keys! {|key| ... } -> self - * transform_keys!(hash2) -> self - * transform_keys!(hash2) {|other_key| ...} -> self * transform_keys! -> new_enumerator * - * Same as Hash#transform_keys but modifies the receiver in place - * instead of returning a new hash. */ static VALUE rb_hash_transform_keys_bang(int argc, VALUE *argv, VALUE hash) |