Groovy web console

subscribe to the feed Subscribe
to this
site

function pointer

Published 2 weeks ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class Conan {
static private def checkoutGitRepo(job){
       print"FOO"
    }


    static private def init(job){
        other_func(self.checkoutGitRepo)
    }

    static private def other_func(func){
       func()
    }
}

Conan.init()