首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ruby中的Yuidoc风格的注释?

Ruby中的Yuidoc风格的注释?
EN

Stack Overflow用户
提问于 2013-05-28 23:03:14
回答 1查看 160关注 0票数 1

如何在Ruby语言中使用YUIDoc注释?我能想到的最好的结果是:

代码语言:javascript
复制
  ##*
  # Get Query history
  # @type {Array} Past search query objects
  # @param {int} limit The number of objects to return. Defaults to 10. (Max 100).
  # @param {boolean} only_visible limit the search to visible items. Defaults to true.
  #

还有这个:

代码语言:javascript
复制
  #/**
  # * Get Query history
  # * @type {Array} Past search query objects
  # * @param {int} limit The number of objects to return. Defaults to 10. (Max 100).
  # * @param {boolean} only_visible limit the search to visible items. Defaults to true.
  # */
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-05-28 23:13:28

您必须将YUIDoc注释嵌入到Ruby多行注释中,如下所示:

代码语言:javascript
复制
=begin
/**
* Get Query history
* @type {Array} Past search query objects
* @param {int} limit The number of objects to return. Defaults to 10. (Max 100).
* @param {boolean} only_visible limit the search to visible items. Defaults to true.
*/
=end

beginend之前的=字符必须在该行的第一列。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16795355

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档