summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-02-06 10:30:11 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-02-07 09:52:06 -0500
commitf9a2802bc58b611a16108bbaf3473cb6195eac0d (patch)
treea635324e276be2aad20146459287c69ae1388eef /io.c
parentecd469fad00611a947aecc6e1e914682d1eec65c (diff)
downloadruby-f9a2802bc58b611a16108bbaf3473cb6195eac0d.tar.gz
[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
Diffstat (limited to 'io.c')
-rw-r--r--io.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/io.c b/io.c
index 08a17aa02b..474c43c4c5 100644
--- a/io.c
+++ b/io.c
@@ -9715,12 +9715,12 @@ static VALUE argf_readlines(int, VALUE *, VALUE);
*
* Returns an array containing the lines returned by calling
* Kernel#gets until the end-of-file is reached;
- * (see {Lines}[IO.html#class-IO-label-Lines]).
+ * (see {Lines}[rdoc-ref:IO@Lines]).
*
* With only string argument +sep+ given,
* returns the remaining lines as determined by line separator +sep+,
* or +nil+ if none;
- * see {Line Separator}[IO.html#class-IO-label-Line+Separator].\:
+ * see {Line Separator}[rdoc-ref:IO@Line+Separator].\:
*
* # Default separator.
* $ cat t.txt | ruby -e "p readlines"
@@ -9740,7 +9740,7 @@ static VALUE argf_readlines(int, VALUE *, VALUE);
*
* With only integer argument +limit+ given,
* limits the number of bytes in the line;
- * see {Line Limit}}[IO.html#class-IO-label-Line+Limit]:
+ * see {Line Limit}}[rdoc-ref:IO@Line+Limit]:
*
* $cat t.txt | ruby -e "p readlines 10"
* ["First line", "\n", "Second lin", "e\n", "\n", "Fourth lin", "e\n", "Fifth line", "\n"]
@@ -9752,10 +9752,10 @@ static VALUE argf_readlines(int, VALUE *, VALUE);
* ["First line\n", "Second line\n", "\n", "Fourth line\n", "Fifth line\n"]
*
* With arguments +sep+ and +limit+ given, combines the two behaviors;
- * see {Line Separator and Line Limit}[IO.html#class-IO-label-Line+Separator+and+Line+Limit].
+ * see {Line Separator and Line Limit}[rdoc-ref:IO@Line+Separator+and+Line+Limit].
*
* For all forms above, trailing optional keyword arguments may be given;
- * see {Line Options}[IO.html#class-IO-label-Line+Options]:
+ * see {Line Options}[rdoc-ref:IO@Line+Options]:
*
* $ cat t.txt | ruby -e "p readlines(chomp: true)"
* ["First line", "Second line", "", "Fourth line", "Fifth line"]
@@ -14376,8 +14376,8 @@ set_LAST_READ_LINE(VALUE val, ID _x, VALUE *_y)
*
* First, what's elsewhere. \Class \IO:
*
- * - 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 \IO provides methods that are useful for: