ruby-changes:20094
From: drbrain <ko1@a...>
Date: Fri, 17 Jun 2011 07:55:03 +0900 (JST)
Subject: [ruby-changes:20094] drbrain:r32141 (trunk): * lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
drbrain 2011-06-17 07:54:53 +0900 (Fri, 17 Jun 2011) New Revision: 32141 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32141 Log: * lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki. [Ruby 1.9 - Bug #4874] Modified files: trunk/ChangeLog trunk/lib/csv.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 32140) +++ ChangeLog (revision 32141) @@ -1,3 +1,8 @@ +Fri Jun 17 07:53:50 2011 Eric Hodel <drbrain@s...> + + * 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@s...> * lib/benchmark.rb: Document Benchmark::Tms#memberwise. Patch by Index: lib/csv.rb =================================================================== --- lib/csv.rb (revision 32140) +++ lib/csv.rb (revision 32141) @@ -2319,6 +2319,10 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/