Mega Code Archive
Categories
/
Ruby
/
Hash
Replace a hash with another key-value pair
counties = { "Three" => 3, "Five" => 5 } temp = {"Three" => 3 } counties.replace( temp )