[ruby-cvs:66506] mrkn:r59328 (trunk): hash.c: Add Hash#transform_keys and Hash#transform_keys!

mrkn at ruby-lang.org mrkn at ruby-lang.org
Fri Jul 14 15:44:00 JST 2017


mrkn	2017-07-14 15:44:00 +0900 (Fri, 14 Jul 2017)

  New Revision: 59328

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59328

  Log:
    hash.c: Add Hash#transform_keys and Hash#transform_keys!
    
    * hash.c (transform_keys_i, rb_hash_transform_keys): Add Hash#transform_keys.
      [Feature #13583] [ruby-core:81290]
    
    * hash.c (rb_hash_transform_keys_bang): Add Hash#transform_keys!.
      [Feature #13583] [ruby-core:81290]
    
    * test/ruby/test_hash.rb: Add tests for above changes.

  Modified files:
    trunk/hash.c
    trunk/test/ruby/test_hash.rb


More information about the ruby-cvs mailing list