Skip to content

Instantly share code, notes, and snippets.

@mdix
Last active December 4, 2015 11:15
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 mdix/40cd9d70b4a5de1a69c0 to your computer and use it in GitHub Desktop.
Save mdix/40cd9d70b4a5de1a69c0 to your computer and use it in GitHub Desktop.
works
'use strict';
var stampit = require('stampit');
var myStamp =
stampit().
init(() => {
var privateMethod = () => {
console.log('YAY');
}
})
.methods({
publicMethod: () => {
this.privateMethod();
}
});
myStamp().publicMethod();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment