summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hash.c94
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)