You can get all rows at once using:
arr_of_arrs = CSV.read("path/to/file.csv")
And then you can use arr_of_arrs.drop(1) to remove the header. Or you can use arr_of_arrs.each_with_index to skip the first line (header), for example:
arr_of_arrs.each_with_index do |e, i| next if i == 0
source share