Baca header CSV menggunakan Ruby

headers = CSV.open('file.csv', 'r') { |csv| csv.first }
Nutty Narwhal