Created
August 23, 2014 14:57
-
-
Save euoia/27d770123d1921f308c6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Users.js | |
| var Users = (function() { | |
| Users.prototype.users = false; | |
| function Users() { | |
| } | |
| Users.prototype.create = function(userData) { | |
| }; | |
| Users.prototype.find = function(username) { | |
| }; | |
| return Users; | |
| })(); | |
| module.exports = Users; | |
| From the command line: | |
| > var User = require('./Users.js'); | |
| undefined | |
| > var u = new User(); | |
| undefined | |
| > u.find | |
| [Function] | |
| > u.find() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment