In Python you can do something like:
d = {"Austria": "Vienna", "Peru": "Lima"} d.pop("Austria") "Vienna" is returned, and the "Austria":"Vienna" pair is deleted from d.
Is there something analogous in Ruby? I think I know the answer but I haven't seen this asked yet on SO and want to confirm I'm correct.