lib/writers/file_writer.rb
# Adds a field to the file definition.
#
# Usage:
#
# * _name_: can be either a string or a symbol.
# * _options_: is a hash that takes the following parameters (See the field writers for more info):
#     :type => [:character, :date] is the field type. character is assumed by default
#     :length => integer, the length of the character field (default: 50)
Adds a field to the file definition.
Usage.

can be either a string or a symbol.
Adds a field to the file definition . Usage . can be either a string or a symbol .
def add_field(field_name, options = {})
    field = BaseFieldWriter.field_for(field_name.to_s, options)
    field.name = change_field_name_to_avoid_collision(field.name)
    @fields[field.name] = field
    self
  end
def add_field ( field_name , options = { } ) field = BaseFieldWriter . field_for ( field_name . to_s , options ) field . name = change_field_name_to_avoid_collision ( field . name ) @fields [ field . name ] = field self end
Adds a field to the file definition.
Adds a field to the file definition .
field_name
<not_specific>
options
<not_specific>