diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-26 14:30:30 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-26 14:30:30 +0000 |
commit | cc64762989e84a12500a649698a04a8ce97690a6 (patch) | |
tree | 78cc93611ad0e5cc9dee981f60b647d10398064e /lib/resolv-replace.rb | |
parent | ce8b8d87c94ef1caf37863162b2a565771588ae2 (diff) | |
download | ruby-cc64762989e84a12500a649698a04a8ce97690a6.tar.gz ruby-cc64762989e84a12500a649698a04a8ce97690a6.tar.xz ruby-cc64762989e84a12500a649698a04a8ce97690a6.zip |
* lib/csv.rb (CSV.read, CSV.readlines): added. works as IO.read and
IO.readlines in CSV format.
* lib/csv.rb (CSV.parse): [CAUTION] behavior changed. in the past,
CSV.parse accepts a filename to be read-opened (it was just a
shortcut of CSV.open(filename, 'r')). now CSV.parse accepts a
string or a stream to be parsed e.g.
CSV.parse("1,2\n3,r") #=> [['1', '2'], ['3', '4']]
* test/csv/test_csv.rb: follow above changes.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv-replace.rb')
0 files changed, 0 insertions, 0 deletions