Skip to content

Instantly share code, notes, and snippets.

@srounce
Created January 23, 2013 13:39
Show Gist options
  • Select an option

  • Save srounce/4605683 to your computer and use it in GitHub Desktop.

Select an option

Save srounce/4605683 to your computer and use it in GitHub Desktop.
For cloudbender
module.exports = exports = function(cArgs) {
var private = Math.random() * 1000;
function MyClass(args)
{
console.log('I am: ');
console.log(this);
}
MyClass.prototype.get = function()
{
return private;
}
MyClass.prototype.set = function( value )
{
private = value;
}
return new MyClass(cArgs);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment