I was learning CSV and found this typo in CSV documents for ruby 2.7.1.
# Headers provided by developer
data = CSV.parse('Bob,Engineering,1000', headers: %[name department salary])
data.first.to_h
# { "name department salary" => "Bob", nil => "Engineering" }
It should be %w[name department salary], I think.
This one's too. (%i[numeric date])
CSV.parse('Bob,2018-03-01,100', converters: %[numeric date])
I was learning CSV and found this typo in CSV documents for ruby 2.7.1.
It should be
%w[name department salary], I think.This one's too. (
%i[numeric date])