diff options
Diffstat (limited to 'lib/csv.rb')
-rw-r--r-- | lib/csv.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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) # |