When using constructor invocation, for instance, like this:
var Symphonize = function(generation_specification){
this.gen_spec = generation_specification;
}
Symphonize.prototype.act_on_object = function () {
// Do actions here on the generation_specification value.
return this.gen_spec;
}
What's one of the ways to provide access to this functionality via a module? If I were to add it to a node module for instance, then want to call it in an application I'm using the module in? I want to basically use it like this in the calling application code.
var blu = require('./symphonize');
blu = new Symphonize({"gen":"stuff"});