code: function setTarget(target) {
          var targetMethods = {};
          for (var name in methods) {
              targetMethods[name] = wrapMethod(target, methods[name]);
          }
          return targetMethods;
      }
docs: /*
  Sets the target object to extend.
  
  @param {object} target The target object.