martinjos (Martin Sidaway)
- Login: martinjos
- Email: msidaway@gmail.com
- Registered on: 09/20/2013
- Last sign in: 09/20/2013
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
09/20/2013
-
07:28 AM Ruby Feature #8929: CSV.foreach(filename) without block returns failing Enumerator
- I can see that it is tricky, because a normal enumerator created by calling CSV#each shouldn't necessarily close the file (as the user may want to call #rewind), but when you use CSV.foreach you have no reference to the CSV object, and y...
-
07:04 AM Ruby Feature #8929: CSV.foreach(filename) without block returns failing Enumerator
- <snip>
(I thought it had failed to send this message...) -
06:24 AM Ruby Feature #8929 (Closed): CSV.foreach(filename) without block returns failing Enumerator
- CSV.foreach(filename) {|entry| p entry } => works
CSV.foreach(filename).to_a => fails
It gives the following error:
IOError: closed stream
from /home/martin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/csv.rb:1776:...