src/computed.js
Minionette.Computed = function() {
var dependencies = _.initial(arguments);
var fn = _.last(arguments);
if (!_.every(dependencies, _.isString)) {
throw new TypeError('Minionette.Computed must be called with dependent keys.');
}
if (!_.isFunction(fn)) {
throw new TypeError('Minionette.Computed must be with a computing function as last parameter.');
}
fn._dependentKeys = dependencies;
return fn;
};