dependency.js
* @module greppy/helper/dependency
* @author Nabil Krause <nabil.krause@silberlicht.eu>
* @param {String} type Maybe 'module' or 'path'
* @param {String} key Which path or module to get
Dependency.prototype.get = function(type, key) {
type = this.validateType(type);
return this[type + 's'][key] || null;
* @param {String} type Maybe 'module' or 'path'
* @param {String} key Which path or module to set
* @param {Mixed} val Value for the specified key
Dependency.prototype.set = function(type, key, val) {
type = this.validateType(type);
* Checks, if a correct type string was provided.
Dependency.prototype.validateType = function(type) {
if ('module' !== type || 'path' !== type) {