summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-02-06 10:37:06 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-02-07 09:52:06 -0500
commita32e5e1b970298590200c2a63e5d4bacce4355ac (patch)
tree034bd876bcfe3f21a3f47d1de8caf65caba9ebb3 /numeric.c
parentf9a2802bc58b611a16108bbaf3473cb6195eac0d (diff)
downloadruby-a32e5e1b970298590200c2a63e5d4bacce4355ac.tar.gz
[DOC] Use RDoc link style for links in the same class/module
I used this regex: (?<=\[)#(?:class|module)-([A-Za-z]+)-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/numeric.c b/numeric.c
index 7f70b02dad..bd1121b567 100644
--- a/numeric.c
+++ b/numeric.c
@@ -962,9 +962,9 @@ num_negative_p(VALUE num)
*
* Here, class \Float provides methods for:
*
- * - {Querying}[#class-Float-label-Querying]
- * - {Comparing}[#class-Float-label-Comparing]
- * - {Converting}[#class-Float-label-Converting]
+ * - {Querying}[rdoc-ref:Float@Querying]
+ * - {Comparing}[rdoc-ref:Float@Comparing]
+ * - {Converting}[rdoc-ref:Float@Converting]
*
* === Querying
*
@@ -3499,10 +3499,10 @@ rb_num2ull(VALUE val)
*
* Here, class \Integer provides methods for:
*
- * - {Querying}[#class-Integer-label-Querying]
- * - {Comparing}[#class-Integer-label-Comparing]
- * - {Converting}[#class-Integer-label-Converting]
- * - {Other}[#class-Integer-label-Other]
+ * - {Querying}[rdoc-ref:Integer@Querying]
+ * - {Comparing}[rdoc-ref:Integer@Comparing]
+ * - {Converting}[rdoc-ref:Integer@Converting]
+ * - {Other}[rdoc-ref:Integer@Other]
*
* === Querying
*
@@ -6104,10 +6104,10 @@ int_s_try_convert(VALUE self, VALUE num)
*
* Here, class \Numeric provides methods for:
*
- * - {Querying}[#class-Numeric-label-Querying]
- * - {Comparing}[#class-Numeric-label-Comparing]
- * - {Converting}[#class-Numeric-label-Converting]
- * - {Other}[#class-Numeric-label-Other]
+ * - {Querying}[rdoc-ref:Numeric@Querying]
+ * - {Comparing}[rdoc-ref:Numeric@Comparing]
+ * - {Converting}[rdoc-ref:Numeric@Converting]
+ * - {Other}[rdoc-ref:Numeric@Other]
*
* === Querying
*