Enumerates all lines of this string.
The last line is the line without an end-of-line, so if the last character of the string is an end-of-line character (LF), the last line will be an empty string.
Example:
"abc\n123" each do line ... end