Flowdock
concat(p1) public

Appends str to the string being scanned. This method does not affect scan pointer.

  s = StringScanner.new("Fri Dec 12 1975 14:39")
  s.scan(/Fri /)
  s << " +1000 GMT"
  s.string            # -> "Fri Dec 12 1975 14:39 +1000 GMT"
  s.scan(/Dec/)       # -> "Dec"
Show source
Register or log in to add new notes.