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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -