Groovy web console

subscribe to the feed Subscribe
to this
site
2mySweetie (via #groovywebconsole)
tweet this snippet Tweet
this
script

2mySweetie

Published 3 months ago by anonymous with tags it doesn't work :(
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class BDSM {
void bondage (Closure c) {
        c.with {
            println get(defstr);
           // println nodefstr;
          //  println typeddef;
        }
    }
}
ctrlNcat = new BDSM()
ctrlNcat.bondage{
def defstr = "abc"
String nodefstr = "cvb"
def String typeddef = "ttttt"
}