如何在Ruby语言中使用YUIDoc注释?我能想到的最好的结果是:
##*
# 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.
#还有这个:
#/**
# * 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.
# */发布于 2013-05-28 23:13:28
您必须将YUIDoc注释嵌入到Ruby多行注释中,如下所示:
=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.
*/
=endbegin和end之前的=字符必须在该行的第一列。
https://stackoverflow.com/questions/16795355
复制相似问题