0001-Adding-documentation-for-raw_encoding-method.patch

David Czarnecki, 06/12/2011 02:41 AM

Download (727 Bytes)

View differences:

lib/csv.rb
2319 2319

  
2320 2320
  private
2321 2321

  
2322
  # 
2323
  # Returns the encoding of the internal IO object or the +default+ if the 
2324
  # encoding cannot be determined.
2325
  #
2322 2326
  def raw_encoding(default = Encoding::ASCII_8BIT)
2323 2327
    if @io.respond_to? :internal_encoding
2324 2328
      @io.internal_encoding || @io.external_encoding
2325
-