Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 58656
BY: Greg Jarman (gregj)
DATE: 2008-07-18 01:22
SUBJECT: modifying table header

 

I can't seem to modify the header of a table. Is it supported?

table = FCSV.parse("x,y\n1,2\n3,4\n", :headers => true)

print table.to_csv
x,y
1,2
3,4

table.headers
=> ["x", "y"]

table.headers[0] = "z"
=> "z"

table.headers
=> ["x", "y"]



Thread View

Thread Author Date
modifying table headerGreg Jarman2008-07-18 01:22
      RE: modifying table headerJames Gray2008-07-18 02:26
            RE: modifying table headerGreg Jarman2008-07-18 03:09

Post a followup to this message