Groovy Scripts - Exploring Binding
In a previous post exploring scripting basics, we saw how binding was used to supply command-line arguments to scripts. In this post, let's explore the design of binding further.
class BindingDemo {
static void main(String[] args) {
Binding sampleBinding = new Binding()
println sampleBinding.variables
sampleBinding.message = "Hello"