I'm not sure if each_cons can do what I'm trying to achieve:

one : vol1
one : vol2
three : vol3



irb(main):052:0> films
=> [["one", "vol1"], ["one", "vol2"], ["three", "vol3"]]

irb(main):053:0> films.each_cons(1) { |f| print f, " " }
onevol1 onevol2 threevol3 => nil

irb(main):054:0> films.each_cons(1) { |f| print f, " ", "\n" }
onevol1
onevol2
threevol3
=> nil

irb(main):055:0> films.each_cons(1) { |f| puts f }
one
vol1
one
vol2
three
vol3
=> nil


Thanks for any help.

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