call to_hash before replacing hash

parent b8ab6af3
......@@ -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]
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment