class CsvExtended < Roo::CSV def foreach(sheet = nil, &block) index = 1 CSV.foreach(@filename, col_sep: ",") do |row| yield(row, index) index += 1 end end end