method

pointer=

v1_9_3_392 - Show latest stable - Class: StringScanner
pointer=(p1)
public

Set the byte position of the scan pointer.

s = StringScanner.new('test string')
s.pos = 7            # -> 7
s.rest               # -> "ring"