[DOC] Use RDoc link style for links to other classes/modules

I used this regex:

([A-Za-z]+)\.html#(?:class|module)-[A-Za-z]+-label-([A-Za-z0-9\-\+]+)

And performed a global find & replace for this:

rdoc-ref:$1@$2
This commit is contained in:
Peter Zhu 2022-02-06 10:30:11 -05:00
parent ecd469fad0
commit f9a2802bc5
Notes: git 2022-02-07 23:52:32 +09:00
9 changed files with 29 additions and 29 deletions

View file

@ -1562,8 +1562,8 @@ rb_struct_dig(int argc, VALUE *argv, VALUE self)
*
* First, what's elsewhere. \Class \Struct:
*
* - Inherits from {class Object}[Object.html#class-Object-label-What-27s+Here].
* - Includes {module Enumerable}[Enumerable.html#module-Enumerable-label-What-27s+Here],
* - Inherits from {class Object}[rdoc-ref:Object@What-27s+Here].
* - Includes {module Enumerable}[rdoc-ref:Enumerable@What-27s+Here],
* which provides dozens of additional methods.
*
* Here, class \Struct provides methods that are useful for: