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/4da9a294df73fb4f63d8c05833348107 to your computer and use it in GitHub Desktop.
Save trycf/4da9a294df73fb4f63d8c05833348107 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
obj = {
myMethod = function () {return arguments}
}
methodName = "myMethod"
useProxy = true
proxy = () => obj[methodName](argumentCollection=arguments)
callMe = useProxy
? proxy
: 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