code: function(methods) {
          var api;
          for (var name in methods) {
              if (methods.hasOwnProperty(name)) {
                  api = this._addMethod(name, methods[name]);
              }
          }
          return api;
      }
docs: add a collection of methods (key/value pairs) to the prototype