From 786ed10d59372433aefdf5451f081ba7aa2964be Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 4 Apr 2014 10:55:48 +0900 Subject: call to_hash before replacing hash --- mrblib/hash.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/mrblib/hash.rb b/mrblib/hash.rb index 978fb367b..539efcdf3 100644 --- a/mrblib/hash.rb +++ b/mrblib/hash.rb @@ -156,6 +156,7 @@ class Hash # ISO 15.2.13.4.23 def replace(hash) self.clear + hash = hash.to_hash hash.each_key{|k| self[k] = hash[k] } -- cgit v1.2.3