method

string=

ruby latest stable - Class: StringScanner
string=(p1)
public

Changes the string being scanned to str and resets the scanner. Returns str.