Hash#replace should copy default from original even when the default value of the original is not set

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-04-07 02:02:53 +09:00
parent 950fe963ac
commit 4e2ae3e376
+1 -1
View File
@@ -154,7 +154,7 @@ class Hash
}
if hash.default_proc
self.default_proc = hash.default_proc
elsif hash.default
else
self.default = hash.default
end
self