Created
July 17, 2014 19:15
-
-
Save objectiveSee/0fd6cb19b0a57235bb5f 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
require('../lib/globals.js'); | |
function SerialDevice() { | |
return { | |
testObjectMethod: function() { | |
} | |
}; | |
} | |
// Export this file as a module | |
module.exports = new SerialDevice(); |
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
var SerialDevice = require('./lib/SerialDevice.js'); | |
var device1 = ... | |
var device2 = ... | |
// How do I create instances of the SerialDevice 'class' (I know.. classes don't exist)? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment