You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract and display RBS type signatures in documentation
Add support for displaying RBS type signatures in both HTML and RI
output. Type information is sourced from inline `#:` annotations
(parsed by the Prism parser) and from `.rbs` files in the project's
`sig/` directory plus RBS stdlib declarations.
Implementation:
- `RDoc::RbsHelper` module: loads RBS signatures, validates types,
renders type signatures as HTML with linked type names
- Parser extracts `#:` annotation lines via `RBS_SIG_LINE` constant,
validates them, and attaches to `MethodAttr#type_signature`
- `Store#merge_rbs_signatures` fills in signatures from `.rbs` files
where inline annotations are absent
- `Store#type_name_lookup` maps qualified and unambiguous unqualified
names to documentation paths for type linking
- Aliki theme: type signatures render as styled `<pre>` blocks under
method headings, with linked type names using `a.rbs-type` class
- RI driver: type signatures display as verbatim blocks
- `MARSHAL_VERSION` bumped to 4 for `AnyMethod` and `Attr`
0 commit comments