Extensions to the Ruby Hash class