eachLine
Enumerates all lines of this string.
Syntax
aString eachLine do line
...
end
...
end
Block Parameters
line - String
The line without the trailing end-of-line character.
Remarks
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