docs: function GENERATE_METHOD(name, spec) {
    var doc = {};
    doc[name] = {
      '!type': 'fn(' + GENERATE_PARAMS(spec.params) + ')' + GENERATE_RETURN(spec.return),
      '!doc': spec.description
    }
    return doc;
  }