Skip to content

Instantly share code, notes, and snippets.

@hay
Created January 13, 2013 11:59
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 hay/4523729 to your computer and use it in GitHub Desktop.
Save hay/4523729 to your computer and use it in GitHub Desktop.
var Module = Stapes.subclass({
constructor : function(name) {
this.name = name;
},
sayName : function() {
console.log(this.name);
}
});
var module = new Module('Emmylou');
module.sayName(); // 'Emmylou'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment