Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/70c083106db62dae2aa8894153c9c9c3 to your computer and use it in GitHub Desktop.
Save trycf/70c083106db62dae2aa8894153c9c9c3 to your computer and use it in GitHub Desktop.
TryCF Gist
<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