如果一个 Module 与一个 Class 同名,RDoc会生成错误的页面链接
比如Rails下 Controller下有个 Student文件夹,即为一个Module名

Model下有一个Student类,生成RDoc,就会把Model/Student类覆盖掉

解决方案:

在Controller/Student/某一个文件加入:

module Student #:nodoc:
end

没有想出更好的方法,只能将Module屏蔽掉

相关文章:

  • 2021-11-26
  • 2021-07-26
  • 2022-12-23
  • 2021-06-13
  • 2021-12-26
  • 2021-07-08
猜你喜欢
  • 2022-12-23
  • 2021-12-29
  • 2021-07-19
  • 2021-04-17
  • 2021-06-29
  • 2022-12-23
  • 2021-11-16
相关资源
相似解决方案