lib/writers/file_writer.rb
# An array that store the field definitions
An array that store the field definitions
An array that store the field definitions
def column_definitions
    offset = 1
    arr = @fields.values.map do |field|
      current_offset, offset = offset, offset + field.length
      field.definition(current_offset)
    end
    arr.join('')
  end
def column_definitions offset = 1 arr = @fields . values . map do | field | current_offset , offset = offset , offset + field . length field . definition ( current_offset ) end arr . join ( '' ) end
An array that store the field definitions
An array that store the field definitions