Mega Code Archive

 
Categories / Ruby / Hash
 

Loop through all keys

zip = { 1 => "A", 2 => "B"} zip.each_key { |key| print key, " " }