= private = protected
string=(p1)
Changes the string being scanned to str and resets the scanner. Returns str.
static VALUE strscan_set_string(VALUE self, VALUE str) { struct strscanner *p; Data_Get_Struct(self, struct strscanner, p); StringValue(str); p->str = str; p->curr = 0; CLEAR_MATCH_STATUS(p); return str; }