method

rewind

ruby latest stable - Class: StringIO
rewind()
public

Positions strio to the beginning of input, resetting lineno to zero.