End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
StringScanner#fixed_anchor?
scanner.fixed_anchor? → true or false
ext/strscan/strscan.c
View on GitHub ↗
static VALUE
strscan_fixed_anchor_p(VALUE self)
{
struct strscanner *p;
p = check_strscan(self);
return p->fixed_anchor_p ? Qtrue : Qfalse;
}
Whether scanner uses fixed anchor mode or not.
If fixed anchor mode is used, A always matches the beginning of the string. Otherwise, A always matches the current position.