我正在使用YARD为我正在处理的几个项目生成文档。一方面,我正在共同开发一个gem,它承载了许多将被其他项目使用的冗余和共享资源。
我想要的是从第一个项目到 gem 中的类或方法的引用,以显示在主项目的文档中。例如
宝石
class Widget
# Spins the widget of course.
def spin
end
end
项目
class SpecialWidget
# Jump and {#spin}.
def dance
end
end
我希望 SpecialWidget 的文档能够生成到 Widget#spin 方法的实际链接。
这可以做到吗?