7stud -- wrote in post #990714:
> I would do it like this:
>
>
> films = [["one", "vol1"], ["one", "vol2"], ["three", "vol3"]]
>
> films.each do |arr|
>   puts arr.join(' : ')
> end
>
> --output:--
> one : vol1
> one : vol2
> three : vol3

Or: since the elements you're yielding are themselves also arrays, ruby 
can automatically assign them to individual variables if you wish (the 
so-called "auto-splat" feature)

films = [["one", "vol1"], ["one", "vol2"], ["three", "vol3"]]

films.each do |label, volume|
  puts "#{label}: #{volume}"
end

-- 
Posted via http://www.ruby-forum.com/.