ruby-changes:16525
From: jeg2 <ko1@a...>
Date: Thu, 1 Jul 2010 23:12:53 +0900 (JST)
Subject: [ruby-changes:16525] Ruby:r28517 (trunk): * lib/csv.rb: Improving documentation.
jeg2 2010-07-01 23:11:02 +0900 (Thu, 01 Jul 2010) New Revision: 28517 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28517 Log: * lib/csv.rb: Improving documentation. Modified files: trunk/ChangeLog trunk/lib/csv.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 28516) +++ ChangeLog (revision 28517) @@ -1,3 +1,7 @@ +Thu Jul 1 23:10:25 2010 James Edward Gray II <jeg2@r...> + + * lib/csv.rb: Improving documentation. + Thu Jul 1 22:15:01 2010 Tanaka Akira <akr@f...> * numeric.c (rb_num2ulong): fix the lower limit for float. Index: lib/csv.rb =================================================================== --- lib/csv.rb (revision 28516) +++ lib/csv.rb (revision 28517) @@ -153,6 +153,14 @@ # CSV { |csv_out| csv_out << %w{my data here} } # to $stdout # CSV(csv = "") { |csv_str| csv_str << %w{my data here} } # to a String # CSV($stderr) { |csv_err| csv_err << %w{my data here} } # to $stderr +# CSV($stdin) { |csv_in| csv_in.each { |row| p row } } # from $stdin +# +# == Advanced Usage +# +# === Wrap an IO Object +# +# csv = CSV.new(io, options) +# # ... read (with gets() or each()) from and write (with <<) to csv here ... # # == CSV and Character Encodings (M17n or Multilingualization) # -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/