Skip to content

Instantly share code, notes, and snippets.

@Joxebus
Last active February 27, 2020 18:46
Show Gist options
  • Save Joxebus/9ab11fb7f5ca4975d69f60c1175ffb0f to your computer and use it in GitHub Desktop.
Save Joxebus/9ab11fb7f5ca4975d69f60c1175ffb0f to your computer and use it in GitHub Desktop.
Method Missing 1
def methodMissing(String name, args) {
Closure closure = actions[name]
if(closure) {
closure.call(args)
} else {
throw new MissingMethodException(name, ActionExecutor.class, args)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment