From: Nobuyoshi Nakada Date: 2013-12-17T11:00:24+09:00 Subject: [ruby-core:59150] Re: [ruby-trunk - Bug #9223] Hash#reject!.size does not reflect changes to the hash (13/12/17 1:27), naruse (Yui NARUSE) wrote: > +* Hash > + * incompatible changes: > + * Hash#reject now returns plain Hash object, that is the original object's > + subclass, instance variables, default value, and taintedness are no longer > + copied. > > but test/ruby/test_hash.rb checks > > assert_instance_of(Hash, h) Right. The result of Hash#reject is always an instance of Hash, not SubHash, now. Better descriptions are always welcome, of course.