Displaying inherited methods in rdoc

戏子无情 提交于 2019-12-22 11:01:12

问题


I have a program written in Ruby that uses multiple levels of inheritance. All of the parent classes have implemented methods that an object of a child class would use, but when I generate an rdoc for my program, the rdoc page for a child class only shows the methods for that specific class and no methods from the parent class.

Does anyone know how to display inherited class methods in rdoc? I have looked through rdoc documentation and some websites and haven't been able to find an answer on whether this is possible.


回答1:


This is a good question, but I am not aware of any solution. In fact, when I read Rdoc, I've come to learn that I need to click the link that points to the parent class if I'm going to see all the methods that the class supports.




回答2:


It looks like the answer is no.



来源:https://stackoverflow.com/questions/1651959/displaying-inherited-methods-in-rdoc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!