Mega Code Archive

 
Categories / Ruby / Hash
 

Instead of integers, you could use strings for the keys

month_a = { "jan" => "January", "feb" => "February", "mar" => "March", "apr"