diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/csv.rb | 8 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Thu Jul 1 23:10:25 2010 James Edward Gray II <jeg2@ruby-lang.org> + + * lib/csv.rb: Improving documentation. + Thu Jul 1 22:15:01 2010 Tanaka Akira <akr@fsij.org> * numeric.c (rb_num2ulong): fix the lower limit for float. diff --git a/lib/csv.rb b/lib/csv.rb index 8685e3d658..d870dfe229 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -153,6 +153,14 @@ require "stringio" # 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) # |