End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
StringScanner#restsize
restsize
ext/strscan/strscan.c
View on GitHub ↗
static VALUE
strscan_restsize(VALUE self)
{
rb_warning("StringScanner#restsize is obsolete; use #rest_size instead");
return strscan_rest_size(self);
}
s.restsize is equivalent to s.rest_size. This method is obsolete; use rest_size instead.