#!/usr/bin/ruby # example data hash = { 'a' => '1', 'b' => '2', 'c' => '3', } hash.each do | k, v | puts "#{k} - #{v}
" end