Method: StringIO#lineno

Defined in:
ext/stringio/stringio.c

#linenoObject

Returns the current line number in self; see Line Number.



647
648
649
650
651
# File 'ext/stringio/stringio.c', line 647

static VALUE
strio_get_lineno(VALUE self)
{
    return LONG2NUM(StringIO(self)->lineno);
}