[ruby-cvs:63579] nobu:r56414 (trunk): hash.c: add compact and compact! methods

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Oct 13 17:06:00 JST 2016


nobu	2016-10-13 17:06:00 +0900 (Thu, 13 Oct 2016)

  New Revision: 56414

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

  Log:
    hash.c: add compact and compact! methods
    
    * hash.c (rb_hash_compact, rb_hash_compact_bang): Removes nil
      values from the original hash, to port Active Support behavior.
      [Feature #11818]

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


More information about the ruby-cvs mailing list