summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/hash.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/mrblib/hash.rb b/mrblib/hash.rb
index 6fae521a8..e608d2971 100644
--- a/mrblib/hash.rb
+++ b/mrblib/hash.rb
@@ -152,6 +152,11 @@ class Hash
hash.each_key{|k|
self[k] = hash[k]
}
+ if hash.default_proc
+ self.default_proc = hash.default_proc
+ elsif hash.default
+ self.default = hash.default
+ end
self
end
# ISO 15.2.13.4.17