'use strict';

var registry = {};

module.exports = function(name, callback) {
  if (callback) {
    registry[name] = callback;
  } else if (typeof name === 'object') {
    for (var method in name) {
      registry[method] = name[method];
    }
  } else {
    return registry[name];
  }

  return registry;
};

@@ -246,16 +246,26 @@
   %7D else
+ if (name)
  %7B%0A    r

Validate name first