merge!(hash, key, value) private

Adds a new key/value pair to an existing Hash. If the key to be added already exists and the existing value associated with key is not an Array, it will be wrapped in an Array. Then the new value is appended to that Array.

hash

Hash to add key/value pair to.

key

Key to be added.

value

Value to be associated with key.

Show source
Register or log in to add new notes.