Flowdock
inspect() public

Returns a string that represents the StringScanner object, showing:

  • the current position

  • the size of the string

  • the characters surrounding the scan pointer

s = StringScanner.new("Fri Dec 12 1975 14:39")
s.inspect            # -> '#<StringScanner 0/21 @ "Fri D...">'
s.scan_until /12/    # -> "Fri Dec 12"
s.inspect            # -> '#<StringScanner 10/21 "...ec 12" @ " 1975...">'
Show source
Register or log in to add new notes.