def process_count
      File.new(infile).each_with_index do |line, index|
        result = col_filter.process(row_filter.process(line.chomp, row: index))
        unless result.nil? or result.empty?
          key = unstring(line).split(';').values_at(*key_columns)
          key_value = key_values[key] || key_values[key] = { name: key, 
                                                             elements: Hash.new(0), 
                                                             sum: 0 }
          result.chomp.split(';').each do |column|
            heading << column if heading.index(column).nil?
            key_value[:elements][column] += 1
            key_value[:sum] += 1
            sums[column] += 1
          end
        end
      end
    end
def process_count
      File.new(infile).each_with_index do |line, index|
        result = col_filter.process(row_filter.process(line.chomp, row: index))
        unless result.nil? or result.empty?
          key = unstring(line).split(';').values_at(*key_columns)
          key_value = key_values[key] || key_values[key] = { name: key, 
                                                             elements: Hash.new(0), 
                                                             sum: 0 }
          result.chomp.split(';').each do |column|
            heading << column if heading.index(column).nil?
            key_value[:elements][column] += 1
            key_value[:sum] += 1
            sums[column] += 1
          end
        end
      end
    end
def process_count File . new ( infile ) . each_with_index do | line , index | result = col_filter . process ( row_filter . process ( line . chomp , row : index ) ) unless result . nil? or result . empty? key = unstring ( line ) . split ( ';' ) . values_at ( key_columns ) key_value = key_values [ key ] || key_values [ key ] = { name : key , elements : Hash . new ( 0 ) , sum : 0 } result . chomp . split ( ';' ) . each do | column | heading << column if heading . index ( column ) . nil? key_value [ :elements ] [ column ] += 1 key_value [ :sum ] += 1 sums [ column ] += 1 end end end end
Processes the counting on the in file
Processes the counting on the in file