Mega Code Archive

 
Categories / Ruby / Hash
 

Clear a hash

counties = { "Three" => 3, "Five" => 5 } counties.clear # bye-bye