mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
revert mis-edited entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c504ca6776
commit
9272ca4d2b
1 changed files with 5 additions and 5 deletions
10
ChangeLog
10
ChangeLog
|
@ -31,26 +31,26 @@ Tue May 18 21:21:43 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
|
||||||
* CSV::Cell removed. a cell is represented as just a String or
|
* CSV::Cell removed. a cell is represented as just a String or
|
||||||
nil(NULL). this change will cause widespread destruction.
|
nil(NULL). this change will cause widespread destruction.
|
||||||
|
|
||||||
CSV.open("foo.csv", "r") do |row|
|
CSV.open("foo.csv", "r") do |row|
|
||||||
row.each do |cell|
|
row.each do |cell|
|
||||||
if cell.is_null # Cell#is_null
|
if cell.is_null # Cell#is_null
|
||||||
p "(NULL)"
|
p "(NULL)"
|
||||||
else
|
else
|
||||||
p cell.data # Cell#data
|
p cell.data # Cell#data
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
must be just;
|
must be just;
|
||||||
|
|
||||||
CSV.open("foo.csv", "r") do |row|
|
CSV.open("foo.csv", "r") do |row|
|
||||||
row.each do |cell|
|
row.each do |cell|
|
||||||
if cell.nil?
|
if cell.nil?
|
||||||
p "(NULL)"
|
p "(NULL)"
|
||||||
else
|
else
|
||||||
p cell
|
p cell
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
* lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior
|
* lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior
|
||||||
|
|
Loading…
Reference in a new issue