Skip to content

dduugg/yard-sorbet

Folders and files

NameName
Last commit message
Last commit date
Dec 28, 2024
Feb 25, 2024
Mar 28, 2025
Mar 28, 2025
Mar 28, 2025
Feb 25, 2024
Aug 14, 2022
Mar 28, 2025
Nov 3, 2021
Mar 28, 2025
Feb 25, 2024
Jul 8, 2021
Mar 28, 2025
Apr 1, 2025
Apr 1, 2025
Jan 2, 2020
May 12, 2023
Feb 23, 2025
Jul 23, 2024

Repository files navigation

yard-sorbet

Gem Version Build Status codecov

A YARD plugin that parses Sorbet type annotations

Features

  • Attaches existing documentation to methods and attributes that follow sig declarations. (This information is otherwise discarded.)
  • Translates sig type signatures into corresponding YARD tags
  • Generates method definitions from T::Struct fields
  • Generates constant definitions from T::Enum enums
  • Modules marked abstract! or interface! are tagged @abstract
  • Modules using mixes_in_class_methods will attach class methods
  • Merges sigs in rbi files with source code documentation (rbi files must come after source code in yard configuration)

Usage

See the Plugin Support section of the YARD docs.

Used By

This plugin is used by: