Skip to content

Instantly share code, notes, and snippets.

@bbarr
Created May 30, 2013 20:17
Show Gist options
  • Save bbarr/5680814 to your computer and use it in GitHub Desktop.
Save bbarr/5680814 to your computer and use it in GitHub Desktop.
var Person = function() {
// one at a time
this.key('fname', { default: 'John' });
// many!
this.keys({
fname: { default: 'John' }
});
}
Person.prototype.name = function() {
return this.fname + ' ' + this.lname;
}
return asDocument(Person)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment