0001-CSV-Documentation-Updates.patch

Ysiad Ferreiras, 05/26/2011 04:52 PM

Download (1.74 KB)

View differences:

lib/csv.rb
27 27
# hopefully this won't be too radically different.
28 28
#
29 29
# We must have met our goals because FasterCSV was renamed to CSV and replaced
30
# the original library.
30
# the original library as of Ruby 1.9. If you are migrating code from 1.8 or
31
# earlier, you may have to change your code to comply with the new interface.
31 32
#
32 33
# == What's Different From the Old CSV?
33 34
#
......
2220 2221
  end
2221 2222

  
2222 2223
  #
2223
  # This methods is used to turn a finished +row+ into a CSV::Row.  Header rows
2224
  # This method is used to turn a finished +row+ into a CSV::Row.  Header rows
2224 2225
  # are also dealt with here, either by returning a CSV::Row with identical
2225 2226
  # headers and fields (save that the fields do not go through the converters)
2226 2227
  # or by reading past them to return a field row. Headers are also saved in
......
2259 2260
  end
2260 2261

  
2261 2262
  #
2262
  # Thiw methods injects an instance variable <tt>unconverted_fields</tt> into
2263
  # +row+ and an accessor method for it called unconverted_fields().  The
2263
  # This method injects an instance variable <tt>unconverted_fields</tt> into
2264
  # +row+ and an accessor method for +row+ called unconverted_fields().  The
2264 2265
  # variable is set to the contents of +fields+.
2265 2266
  #
2266 2267
  def add_unconverted_fields(row, fields)
2267
-