method
inspect
inspect()
public
Returns a string that represents the StringScanner object, showing:
-
the current position
-
the characters surrounding the scan pointer
s = StringScanner.new(“Fri Dec 12 1975 14:39”) s.inspect # -> ‘#
0/21 @ “Fri D…”>’ s.scan_until /12/ # -> “Fri Dec 12” s.inspect # -> ‘# 10/21 “…ec 12” @ “ 1975…”>’