java-tutorials/gradle/greeting-library/bin/greeter/GreetingFormatter.groovy

11 lines
190 B
Groovy
Raw Normal View History

2019-10-30 18:09:06 -04:00
package greeter
import groovy.transform.CompileStatic
@CompileStatic
class GreetingFormatter{
static String greeting(final String name) {
"Hello, ${name.capitalize()}"
}
}