Вы можете сделать это
text = File.readlines("file.csv")[1..-1].join() csv = CSV.parse(text, headers: true)