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()