| 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"]
| |