TSV::Table#rewind ought to rewind data_enumerator.
Opened this issue · 2 comments
Slotos commented
Currently it's being stopped by our Enumerator that's wrapping Enumerator.
brain-geek commented
@Slotos I can't reproduce the problem. Can you show me some broken code?
From what I see now - rewinding 'our' enumerator restarts it from the ground up - and this also restarts data_enumerator from scratch.
Slotos commented
Sorry for scarce description, left these mostly as a reminder for myself. I'll attempt to reproduce them in the same environment I caught them in (ruby 2.2.0p0, rails console) and update as necessary.
update
Reproduced it on Debian Jessie in irb rails console and in separate pry session. Ruby 2.2.0p0
Reproduced it on OSX in pry session. Ruby 2.2.1p85