根据RDoc documentation,类的名称、源文件和任何包含下划线或以散列字符开头的方法名称都会自动超链接。但是links to plurals of class names in RDoc不起作用。因此,在像“帖子有很多评论”这样的句子中,Post是链接的,而Comment不是。似乎有一个类似这样的解决方法
A Post has many Comments[class_link:Comment.html].但它有点冗长。有没有更好的方法链接到复数名称?
发布于 2012-07-28 00:20:56
也可以使用..
Comments[link:Comment.html]根据RDoc documentation的说法,..or
Comments[rdoc-ref:Comment]RDoc链接的一般格式是label[url]或{label}[url],请参阅RDoc documentation。不幸的是,简单的表单Comments[Comment]不起作用,这将类似于内部链接的MediaWiki语法,在内部链接中需要编写[[Comment|Comments]]。
https://stackoverflow.com/questions/11691622
复制相似问题