lib/json-dry.js
function registerDrier(constructor, fnc, options) {

	var path;

	if (typeof constructor == 'function') {
		path = constructor.name;
	} else {
		path = constructor;
	}

	driers[path] = {
		fnc     : fnc,
		options : options || {}
	};
}
function registerDrier(constructor, fnc, options) {

	var path;

	if (typeof constructor == 'function') {
		path = constructor.name;
	} else {
		path = constructor;
	}

	driers[path] = {
		fnc     : fnc,
		options : options || {}
	};
}
function registerDrier ( constructor , fnc , options ) { var path ; if ( typeof constructor == 'function' ) { path = constructor . name ; } else { path = constructor ; } driers [ path ] = { fnc : fnc , options : options || { } } ; }
Register a drier

@author   Jelle De Loecker   <jelle@develry.be>
@since    1.0.0
@version  1.0.0

@param    {Function|String}   constructor   What constructor to listen to
@param    {Function} fnc
@param    {Object}   options
Register a drier