← Reference

hash-methods

Ruby hash-methods reference.

Hash#delete

Remove a key-value pair from a hash and return the deleted value. Returns nil (or the result of an ifnone block) when the key is not found.