A YARD plugin that parses Sorbet type annotations
- Attaches existing documentation to methods and attributes that follow
sigdeclarations. (This information is otherwise discarded.) - Translates
sigtype signatures into corresponding YARD tags - Generates method definitions from
T::Structfields - Generates constant definitions from
T::Enumenums - Modules marked
abstract!orinterface!are tagged@abstract - Modules using
mixes_in_class_methodswill attach class methods - Merges
sigs in rbi files with source code documentation (rbi files must come after source code in yard configuration)
See the Plugin Support section of the YARD docs.
This plugin is used by:
- The Homebrew Ruby API
- Tapioca, to optionally include YARD documentation from sources when generating RBIs
yard-sorbetitself