Project

General

Profile

Bug #4874 ยป 0001-Adding-documentation-for-raw_encoding-method.patch

czarneckid (David Czarnecki), 06/12/2011 02:41 AM

View differences:

lib/csv.rb
private
#
# Returns the encoding of the internal IO object or the +default+ if the
# encoding cannot be determined.
#
def raw_encoding(default = Encoding::ASCII_8BIT)
if @io.respond_to? :internal_encoding
@io.internal_encoding || @io.external_encoding
    (1-1/1)