Created
June 9, 2021 20:53
-
-
Save trycf/70c083106db62dae2aa8894153c9c9c3 to your computer and use it in GitHub Desktop.
TryCF Gist
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
<cfscript> | |
obj = { | |
myMethod = function () {return arguments} | |
} | |
methodName = "myMethod" | |
useProxy = true | |
callMe = useProxy | |
? () => obj[methodName](argumentCollection=arguments) | |
: obj[methodName] | |
result = callMe("someArg") | |
writeDump(result) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment