def other_programmes array = [] OTHERS.each_pair do |key, programme| # do some foo with it array.push(foobar) end array.join(", ") end