From 4e2ae3e3760fc38192ac1e1f81211f365664cd7c Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 7 Apr 2014 02:02:53 +0900 Subject: Hash#replace should copy default from original even when the default value of the original is not set --- mrblib/hash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrblib/hash.rb b/mrblib/hash.rb index e608d2971..9a8bd8a7b 100644 --- a/mrblib/hash.rb +++ b/mrblib/hash.rb @@ -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 -- cgit v1.2.3