You can clone with
# Obviously this could be done with .join("\n"), but let's say we didn't have join...
x = [1,2,3,4]
# This will yield: 1,2 then 2,3 then 3,4 then 4,nil
(x + [nil]).each_cons(2) do |item, next_item|
puts "\n" if next_item