From: "nobu (Nobuyoshi Nakada)" Date: 2013-07-25T09:46:46+09:00 Subject: [ruby-core:56163] [ruby-trunk - Feature #8683][Rejected] CSV library can't append to the current row. It should be able to. Issue #8683 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Rejected CSV class is a reader/writer, not to edit CSV data on memory. You may want to use CSV::Table instead. ---------------------------------------- Feature #8683: CSV library can't append to the current row. It should be able to. https://bugs.ruby-lang.org/issues/8683#change-40656 Author: robertgleeson (Robert Gleeson) Status: Rejected Priority: Normal Assignee: Category: Target version: The CSV library can only add *new* rows, and it provides no way to update the current row after it has been created. For example: CSV.generate headers: true do |csv| csv << ["one"] ["two", "three"].each do |e| csv << e # This creates a new row, I want to append. end csv.headers << ["two", "three"] # No, this doesn't work either. end Is this possible? I find it hard to believe the API could be _that_ limited and inflexible. -- http://bugs.ruby-lang.org/