instance method
StringIO#lineno
() -> ::Integer
lineno → current_line_number
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_get_lineno(VALUE self)
{
return LONG2NUM(StringIO(self)->lineno);
}
Returns the current line number in self; see Line Number.