Borderizing Texts by yvl

gets
f=proc{|x|"| #{split.map{|w|x ?("| "*9)[x,w.size]:w}*" | "} |"}
puts" "+"_"*(/..$/=~a=f[]),f[0],a,f[1].tr(" ","_")

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

download

return to the top page