javascript - yuidoc - how to define a class method in an other file -
i'm writing documentation yuidoc. however, have class model, has 1 of methods defined elsewhere. here code visualize situation. assume have file model.js:
/** * @class model * @constructor */ window.model = function(){} ....
and file activerecord.js:
(function(){ /** * @class activerecord * @constructor window.activerecord = function(){} .... /** * @method model.hasmany * @param {class} model */ function hasmany(model) {} })() ;
as can see, method 'hasmany' should show under class documentation of model. however, doesn't. possible ?
thanks lot
see @for
tag: http://yui.github.io/yuidoc/syntax/index.html#for
/** * method "hasmany" disconnected class "model". * * @method hasmany * @for model * @param {class} model */ function hasmany(model) {}
Comments
Post a Comment