diff options
author | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-01 14:11:02 +0000 |
---|---|---|
committer | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-01 14:11:02 +0000 |
commit | 5d229db887ec42178ef90c20c014d5073c49cc6f (patch) | |
tree | ebfcc6b6caa48bd8b9f87e2e3f5bf52dfaf3f111 /lib | |
parent | 8bab1aff2c6b9cdb5f840691f98fc078ce9b7cb9 (diff) | |
download | ruby-5d229db887ec42178ef90c20c014d5073c49cc6f.tar.gz |
* lib/csv.rb: Improving documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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) # |