YARD is a documentation generation tool for the Ruby programming language. It enables the user to generate consistent, usable documentation that can be exported to a number of formats very easily, and also supports extending for custom Ruby constructs such as custom class level definitions.Installation
YARD can be installed as a Ruby gem:
gem install yardUsage
To see help on all commands:
yard helpFrequently Used Tags
@authorDocument Generation
@param
@return
@note
@see
@todo
yard doc <Ruby file>Examples:
A custom tag can be added via one of the following:
(1) as a command option: --tag TAG:TITLE
(2) included in file .yardopts, e.g.




No comments:
Post a Comment