End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
StringIO#pos
strio.pos → integer
strio.tell → integer
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_get_pos(VALUE self)
{
return LONG2NUM(StringIO(self)->pos);
}
Returns the current offset (in bytes).