Ruby Yard 是否具有与 RDoc :include: 标签相当的功能?
RDoc has the :include: tag (see the bottom of this page) that will take in an arbitrary text file and format as if it was indented wherever the include begins. This is a great way to pull in source code for documentation examples.
Does Yard have a similar tag or feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前,YARD 仅支持以以下形式嵌入来自其他对象文档字符串的文档:
文件包含计划模糊,但之前从未真正请求过,因此优先级不高。如果您想在 http://github.com/lsegal/yard/issues 上提出问题-- 我们可以确保它被跟踪并添加到即将发布的 0.7.0 版本中。
Currently YARD only supports embedding documentation from other object docstrings in the form:
File inclusion was vaguely planned but it was never really requested before, so it wasn't high priority. If you want to open an issue on http://github.com/lsegal/yard/issues -- we can make sure it gets tracked and added for the upcoming 0.7.0 release.