Closed grzegorz-jakubiak closed 5 years ago
CSV
object is IO like object.
So you consume rows in CSV
object, you can't get them again without CSV#rewind
.
data.map {...}; data.rewind; data.map {...}
will work as you expect.
I see thanks for letting me know. Closing
Code to reproduce:
Tested on ruby 2.6.2 and 2.5.1 respective csv versions:
csv (default: 3.0.4)
andcsv (default: 1.0.0)
and I experienced the bug on both.