Sha256: 6e0220f34f2e8c9abefaef254a548b6d0623fdfc0ec737e897cda6508afde652

Contents?: true

Size: 476 Bytes

Versions: 17

Compression:

Stored size: 476 Bytes

Contents

var Module = function() {
  var providers = [];

  this.factory = function(name, factory) {
    providers.push([name, 'factory', factory]);
    return this;
  };

  this.value = function(name, value) {
    providers.push([name, 'value', value]);
    return this;
  };

  this.type = function(name, type) {
    providers.push([name, 'type', type]);
    return this;
  };

  this.forEach = function(iterator) {
    providers.forEach(iterator);
  };
};

module.exports = Module;

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/di/lib/module.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/di/lib/module.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/di/lib/module.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/di/lib/module.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/di/lib/module.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/di/lib/module.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/di/lib/module.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/di/lib/module.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/di/lib/module.js