diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-16 22:54:53 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-16 22:54:53 +0000 |
commit | 517c3385b121680d9db40a841deb6d57fc815821 (patch) | |
tree | f6459f8dc677fbc49a134936fa23d9c20a80181e /lib/csv.rb | |
parent | 105a9e036c7f73913f2910858c1e6afce23378e8 (diff) | |
download | ruby-517c3385b121680d9db40a841deb6d57fc815821.tar.gz |
* lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
[Ruby 1.9 - Bug #4874]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/csv.rb')
-rw-r--r-- | lib/csv.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/csv.rb b/lib/csv.rb index 50aba3d91e..ce05164c75 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -2319,6 +2319,10 @@ class CSV 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 |