doxy/node/generators/yuidoc/generator.js
function GENERATE_CLASSES(classes, parent) {
  return _.reduce(classes, function(memo, classSpec, className) {
    return memo
      + GENERATE_CLASS(className, classSpec.description, parent, classSpec.parent)
      + _.reduce(classSpec.methods, function(memo, methodSpec, methodName) {
        return memo += GENERATE_METHOD(methodName, methodSpec, className);
      }, '') 
      + _.reduce(classSpec.variables, function(memo, variableSpec, variableName) {
        return memo += GENERATE_VAR(variableName, variableSpec, className);
      }, '')
      + _.reduce(classSpec.enums, function(memo, enumSpec, enumName) {
        return memo += GENERATE_ENUM(enumName, enumSpec, className);
      }, '');
  }, '');
}
function GENERATE_CLASSES(classes, parent) {
  return _.reduce(classes, function(memo, classSpec, className) {
    return memo
      + GENERATE_CLASS(className, classSpec.description, parent, classSpec.parent)
      + _.reduce(classSpec.methods, function(memo, methodSpec, methodName) {
        return memo += GENERATE_METHOD(methodName, methodSpec, className);
      }, '') 
      + _.reduce(classSpec.variables, function(memo, variableSpec, variableName) {
        return memo += GENERATE_VAR(variableName, variableSpec, className);
      }, '')
      + _.reduce(classSpec.enums, function(memo, enumSpec, enumName) {
        return memo += GENERATE_ENUM(enumName, enumSpec, className);
      }, '');
  }, '');
}
function GENERATE_CLASSES ( classes , parent ) { return _ . reduce ( classes , function ( memo , classSpec , className ) { return memo + GENERATE_CLASS ( className , classSpec . description , parent , classSpec . parent ) + _ . reduce ( classSpec . methods , function ( memo , methodSpec , methodName ) { return memo += GENERATE_METHOD ( methodName , methodSpec , className ) ; } , '' ) + _ . reduce ( classSpec . variables , function ( memo , variableSpec , variableName ) { return memo += GENERATE_VAR ( variableName , variableSpec , className ) ; } , '' ) + _ . reduce ( classSpec . enums , function ( memo , enumSpec , enumName ) { return memo += GENERATE_ENUM ( enumName , enumSpec , className ) ; } , '' ) ; } , '' ) ; }
generate spec for the given list of classes
generate spec for the given list of classes