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 change_field_name_to_avoid_collision(field)
    regex = Regexp.new "^#{field}.*"
    names = @fields.keys.select {|key| key =~ regex }
    unless names.empty?
      field = new_field_name(names.sort.last, field)
    end
    field
  end
def change_field_name_to_avoid_collision ( field ) regex = Regexp . new "^#{field}.*" names = @fields . keys . select { | key | key =~ regex } unless names . empty? field = new_field_name ( names . sort . last , field ) end field end
An array that store the field definitions
An array that store the field definitions
# select the names that match the field name
field
<not_specific>