StringMethods
StringMethods
contains one-liners for manipulating strings; it is based on
Apache Common's StringUtils
class. This class is for use in both
Gloop and Groovy.
Below are sample usages:
1 2 3 4 | assert 'HelloWorldHelloGoodPuppers'.splitCamelCase().equals('Hello World Hello Good Puppers') def string = 'Super secret string' assert string.encrypt().decrypt().equals(string) |