Mega Code Archive

 
Categories / Ruby / Hash
 

Use number as hash key

money = {1 => "$1,000,000", 2 => "$500,000"} puts money[1]