Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
StringIO#lineno=
lineno = new_line_number → new_line_number
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_set_lineno(VALUE self, VALUE lineno)
{
StringIO(self)->lineno = NUM2LONG(lineno);
return lineno;
}
Sets the current line number in self to the given new_line_number; see Line Number.