Created
December 4, 2015 10:20
-
-
Save mdix/a0a848d386762e28d1ba to your computer and use it in GitHub Desktop.
stampit access private from public
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
myStamp = | |
stampit(). | |
init(() => { | |
this.privateMethod = () => { | |
// private method | |
} | |
}) | |
.methods({ | |
publicMethod: () => { | |
// consume privateMethod here | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment