Table-formatter now features a simple column divider

Example:

require 'table-formatter'

labels = %w(Name Age Address Code)
a = [['Bob', '20', '10, High Street','A342 iuy y iu yy123456789 123456789 1234'],
     ['Jane', '23', '12/3, Lawn Market Court', 'B34F'],
     ['Bruce', '32', '63, Cotswalds Way', 'F34AD'],
     ['Michael', '49', '1, Hollwood Way', 'E234D'],
     ['Stephanie', '34', '2, Hampton Court','A234']]

tfo = TableFormatter.new border: false, nowrap: true, divider: ' # '
tfo.source = a
#tfo.labels = labels
puts tfo.display

output:

Bob         # 20   # 10, High Street           # A342 iuy y iu yy123456789 123456789 1234
Jane        # 23   # 12/3, Lawn Market Court   # B34F                        
Bruce       # 32   # 63, Cotswalds Way         # F34AD                       
Michael     # 49   # 1, Hollwood Way           # E234D                       
Stephanie   # 34   # 2, Hampton Court          # A234                        

Tags:
Source:
2224hrs.txt
Published:
24-10-2013 22:24