This class defines new joinLines() methods which appear on String and GString classes inside the Groovy environment. Static methods are used with the first parameter
being the destination class, i.e. public static String joinLines(String self) provides a
joinLines() method for String.
NOTE: While this class contains many 'public' static methods, it is intended as an internal class and should not be referenced directly. Future versions may move methods in this class to another internal class, but aim to keep the methods available from within Groovy.
Trims leading and trailing whitespace and joins multiple with a single space. This use the
Java Pattern definition of "whitespace", (i.e. matches the \s predefined
character class). Any occurrence of a newline character (\n) surrounded by any amount
of whitespace (\s) is replaced with a single space.
Stringself - a String Trims leading and trailing whitespace and joins multiple lines with a single space. This use
the Java Pattern definition of "whitespace", (i.e. matches the \s predefined
character class). Any occurrence of a newline character (\n) surrounded by any amount
of whitespace (\s) is replaced with a single space. This does not modify the given
GString, nor does it modify the GString's embedded values.
GStringself - a GString