From: Sy Ali Date: 2006-05-16T09:36:19+09:00 Subject: Re: Columnization of text, using text-reform On 5/14/06, Sy Ali wrote: > I'm playing with this 'classes' stuff: > http://www.rubycentral.com/book/tut_classes.html > > The examples aren't quite working as-expected.. but I'm muddling through it all. Ok, I figured it out. I'm not sure why it works or what's going on, but I'll leave that for later. ;) require 'reform.rb' r = Text::Reform.new filename1 = "This is a long filename" description1 = "desc" filename2 = "Filename" description2 = "This is a long description" filename3 = "This is a long filename" description3 = "This is a particularly long description" output = "" output << "------------------------\n" output << r.format("[[[[[[[[[[[ [[[[[[[[[[[", filename1, description1) output << "------------------------\n" output << r.format("[[[[[[[[[[[ [[[[[[[[[[[", filename2, description2) output << "------------------------\n" output << r.format("[[[[[[[[[[[ [[[[[[[[[[[", filename3, description3) output << "------------------------\n" puts output