如何使用 rdoc 列出未记录的 modules/classes/constants/methods?

How can I list the undocumented modules/classes/constants/methods with rdoc?

我有一个 Rails 应用程序,我正在使用 RDOC 进行记录。当我 运行 rake rdoc 命令时,它告诉我:

  Classes:     96 (  6 undocumented)
  Modules:     22 ( 14 undocumented)
  Constants:   12 ( 11 undocumented)
  Attributes:  27 ( 27 undocumented)
  Methods:    545 (532 undocumented)

  Total:      702 (590 undocumented)
  15.95% documented

我想找到未记录的 类、模块、常量和方法,所以我希望它简单地列出未记录的项目。有人知道怎么做吗?

如果您 运行 rdoc 作为它自己的命令,您可以指定各种选项。

在您的情况下,您正在寻找 rdoc -C,它是 "coverage report".

的缩写

rdoc -h 将列出所有 command-line 选项。