Groovy allows you to do nice things with lines on external pages, for example:
${"hello".capitalize()}
How to add a new custom method to String class? How:
String
${"hello".custom()}
Use metaClass
String.metaClass.custom = { //dosomething }
See http://www.groovyexamples.org/2010/07/19/dynamically-add-properties-to-a-class/
Source: https://habr.com/ru/post/914375/More articles:Dynamic Target Requests in OSGi with DS - osgijavascript animation stopped in ios Safari web browser browser when finger is on screen without lifting - javascriptprocess.getuid () not working on windows - javascriptAn exception to the native failure flow of a .NET application without exception is .netWhat house JRE to install in Eclipse for JDK7u4 on Mac OS X? - javaPowerpoint VBA App_SlideShowBegin - eventsOpen local XML file in WP7 - c #Is AJAX constantly looking for a server update? Javascript - javascriptHow to specify a package when searching for a help manual page for a function? - rHow to fix MethodAccessException while reading a file? - windows-phone-7All Articles