I want to make tabular output in Ruby…
I am using puts "x\t\t[OK]
assuming that x represents inputted filename, and this process is repeated for ever, and assuming that the range of characters is from 5 – 20 characters the output won’t be neat
Output sample: http://pastebin.com/kwJ9ajqj
I want the OKs to be aligned.
You can fill the x-s with spaces to the same (maximum) length using ljust.
This will align the “[OK]”s. If you need tabs, you can insert them
after filling like