Borderizing Texts by kaki

a=gets.split
f=proc{|i,q|a.map{|t|(i*9)[0,t.size]}.join q}
x="| #{f["| ",j=" | "]} |"
puts" "+"_"*(x.size-2),x,"| #{a.join j} |","|_#{f["_|","_|_"]}_|"

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

download

return to the top page