1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress a warning when write_headers: true

This commit is contained in:
Nobuyoshi Nakada 2019-07-08 13:03:50 +09:00
parent a2e0aaea1b
commit e9907122ed
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -14,6 +14,7 @@ class CSV
@output = output
@options = options
@lineno = 0
@fields_converter = nil
prepare
if @options[:write_headers] and @headers
self << @headers