Skip to content

Commit

Permalink
Suppress a warning when write_headers: true
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jul 8, 2019
1 parent a2e0aae commit e990712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/csv/writer.rb
Expand Up @@ -14,6 +14,7 @@ def initialize(output, options)
@output = output
@options = options
@lineno = 0
@fields_converter = nil
prepare
if @options[:write_headers] and @headers
self << @headers
Expand Down

0 comments on commit e990712

Please sign in to comment.