Skip to content

Instantly share code, notes, and snippets.

@theopendle
Created April 7, 2021 12:23
Show Gist options
  • Save theopendle/558086828cefe21ed9fef4e5b672b75b to your computer and use it in GitHub Desktop.
Save theopendle/558086828cefe21ed9fef4e5b672b75b to your computer and use it in GitHub Desktop.
// Add a closure (that takes a name argument) to the binding as a variable
binding.hello = { name ->
println "Hello " + name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment