mix lines by

a=readlines.map(&:chomp);puts a.map(&:length).max.times.inject(''){|s,i|s<<a.clone.map{|c|c[i]}.join}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top