Skip to content

Commit

Permalink
Hash#replace should copy default from original even when the default …
Browse files Browse the repository at this point in the history
…value of the original is not set
  • Loading branch information
matz committed Apr 6, 2014
1 parent 950fe96 commit 4e2ae3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrblib/hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def replace(hash)
}
if hash.default_proc
self.default_proc = hash.default_proc
elsif hash.default
else
self.default = hash.default
end
self
Expand Down

0 comments on commit 4e2ae3e

Please sign in to comment.