[ruby-cvs:54232] knu:r47085 (trunk): * lib/set.rb (Set#replace): Check if an object given is enumerable

knu at ruby-lang.org knu at ruby-lang.org
Wed Aug 6 20:28:22 JST 2014


knu	2014-08-06 20:28:21 +0900 (Wed, 06 Aug 2014)

  New Revision: 47085

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

  Log:
    * lib/set.rb (Set#replace): Check if an object given is enumerable
      before clearing self.  Reported by yui-knk. [GH-675]
      https://github.com/ruby/ruby/pull/675

  Modified files:
    trunk/ChangeLog
    trunk/lib/set.rb
    trunk/test/test_set.rb


More information about the ruby-cvs mailing list