Last active
December 4, 2015 11:15
-
-
Save mdix/40cd9d70b4a5de1a69c0 to your computer and use it in GitHub Desktop.
works
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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