This is an enhancement of high-level API that allows to use not only strings, fully pre-loaded into memory, but really any suitable object that has #each_line. First and foremost, it makes it possible to use pre-opened IO objects, for example, something like that:
This is an enhancement of high-level API that allows to use not only strings, fully pre-loaded into memory, but really any suitable object that has
#each_line
. First and foremost, it makes it possible to use pre-opened IO objects, for example, something like that:where that
[:tempfile]
stuff is a pre-openedTempFile
object made by user web file upload.