You have to embed YUIDoc comments inside a Ruby multiline comment, like this:
=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
The =
character before begin
and end
must be on the first column of the line.