The code below works, and I'm not that unhappy with it, it just feels a bit awkward. Is there a cleaner way to setup an electrolyte component with multiple methods on the object? The examples don't show how to setup with multiple class methods (unless I'm misreading).
exports = module.exports = function(say) {
//private
var count = 0;
var retObj; = {
mary: function() {
count++;
console.log(say.hello() + 'Mary' + count + "\n");
}
}
return retObj;;
};
exports['@require'] = ['Say'];