Last active
February 27, 2020 18:46
-
-
Save Joxebus/9ab11fb7f5ca4975d69f60c1175ffb0f to your computer and use it in GitHub Desktop.
Method Missing 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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