如何在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.
# */
必须在Ruby多行注释中嵌入YUIDoc注释,如下所示:
=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
begin
和end
前的=
必须是该行第一列的