Skip to content

Instantly share code, notes, and snippets.

@dfgrumpy
Created December 12, 2013 05:27
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 dfgrumpy/7923587 to your computer and use it in GitHub Desktop.
Save dfgrumpy/7923587 to your computer and use it in GitHub Desktop.
<cfscript>
myObj = createObject("component",'test');
writeDump(myObj.genericContainer());
</cfscript>
component {
public function genericContainer() {
private function helloInt() {
return "Hello There";
}
return {
hello: function(){
return helloInt();
}
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment