lib/sycsvpro/table.rb
def create_table_data
      processed_header = false

      File.open(infile).each_with_index do |line, index|
        line = line.chomp

        next if line.empty?
        
        line = unstring(line).chomp

        header.process line, processed_header

        unless processed_header
          processed_header = true
          next
        end

        next if row_filter.process(line, row: index).nil?
        
        @columns = line.split(';')

        create_row(create_key, line)
      end

    end
def create_table_data
      processed_header = false

      File.open(infile).each_with_index do |line, index|
        line = line.chomp

        next if line.empty?
        
        line = unstring(line).chomp

        header.process line, processed_header

        unless processed_header
          processed_header = true
          next
        end

        next if row_filter.process(line, row: index).nil?
        
        @columns = line.split(';')

        create_row(create_key, line)
      end

    end
def create_table_data processed_header = false File . open ( infile ) . each_with_index do | line , index | line = line . chomp next if line . empty? line = unstring ( line ) . chomp header . process line , processed_header unless processed_header processed_header = true next end next if row_filter . process ( line , row : index ) . nil? @columns = line . split ( ';' ) create_row ( create_key , line ) end end
Create the table
Create the table