method

lineno=

ruby latest stable - Class: StringIO
lineno=(p1)
public

Manually sets the current line number to the given value. $. is updated only on the next read.