Method: StringIO#pos

Defined in:
ext/stringio/stringio.c

#posObject

Returns the current position (in bytes); see Position.



735
736
737
738
739
# File 'ext/stringio/stringio.c', line 735

static VALUE
strio_get_pos(VALUE self)
{
    return LONG2NUM(StringIO(self)->pos);
}