Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
StringIO#pos
pos → stream_position
ext/stringio/stringio.c
View on GitHub ↗
static VALUE
strio_get_pos(VALUE self)
{
return LONG2NUM(StringIO(self)->pos);
}
Returns the current position (in bytes); see Position.