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

11 lines
190 B
Groovy
Raw Normal View History

package greeter
import groovy.transform.CompileStatic
@CompileStatic
class GreetingFormatter{
static String greeting(final String name) {
"Hello, ${name.capitalize()}"
}
}