Ruby Hash class extensions