I'm trying to write some documentation for a JavaScript method using YUIDoc. It looks like:
/**
Returns an instance of className
@method getInstance
@param {string} className the of the class used to create the instance
@param {Object} options these are options used to create the instance
**/
function getInstance(className, options) { ..... }
Now, the options object can have several parameters, like options.id
, options.single
, etc.
How do I add this information to the documentation of this @param
?