lineno=(p1)
public
Manually sets the current line number to the given value. $. is
updated only on the next read.
Show source
/*
* call-seq:
* strio.lineno = integer -> integer
*
* Manually sets the current line number to the given value.
* <code>$.</code> is updated only on the next read.
*/
static VALUE
strio_set_lineno(self, lineno)
VALUE self, lineno;
{
StringIO(self)->lineno = NUM2LONG(lineno);
return lineno;
}