зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
105a9e036c
Коммит
517c3385b1
|
@ -1,3 +1,8 @@
|
|||
Fri Jun 17 07:53:50 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
|
||||
[Ruby 1.9 - Bug #4874]
|
||||
|
||||
Fri Jun 17 07:46:50 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/benchmark.rb: Document Benchmark::Tms#memberwise. Patch by
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче