Skip to content

Commit

Permalink
make first fase after first
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason committed Jun 21, 2010
1 parent a61676f commit 3b4a2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fasterer_csv.rb
Expand Up @@ -274,9 +274,9 @@ def initialize(file, quot = '~', sep = ',', quotenum = false) @first = true; @io
def <<(row)
raise "can only write arrays! #{row.class} #{row.inspect}" unless row.is_a? Array
if @first && row.is_a?(Row)
@first = false
self.<<(row.headers)
end
@first = false
@io.syswrite FastererCSV::quot_row(row, @quot, @sep, @quotenum)
row
end
Expand Down

0 comments on commit 3b4a2f5

Please sign in to comment.