RDoc 解决同名module 与 Class的问题
如果一个 Module 与一个 Class 同名,RDoc会生成错误的页面链接
比如Rails下 Controller下有个 Student文件夹,即为一个Module名
Model下有一个Student类,生成RDoc,就会把Model/Student类覆盖掉
解决方案:
在Controller/Student/某一个文件加入:
Code
没有想出更好的方法,只能将Module屏蔽掉
如果一个 Module 与一个 Class 同名,RDoc会生成错误的页面链接
比如Rails下 Controller下有个 Student文件夹,即为一个Module名
Model下有一个Student类,生成RDoc,就会把Model/Student类覆盖掉
解决方案:
在Controller/Student/某一个文件加入:
Code
没有想出更好的方法,只能将Module屏蔽掉