Ruby | Hash replace() method
Hash#replace() : replace() is a Hash class method which replaces the content of one hash with other. Syntax: Hash.replace() Parameter: Hash values Return: replaces the content of one hash with other. Example #1 : # Ruby code for Hash.replace() method # declaring Hash value a = {a:100, b:200} # decla