[DOC] Fix rdoc-ref

This commit is contained in:
Nobuyoshi Nakada 2022-10-19 08:52:29 +09:00
parent 12c30f215c
commit 01d56b99bf
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -652,7 +652,7 @@ strio_copy(VALUE copy, VALUE orig)
* lineno -> current_line_number * lineno -> current_line_number
* *
* Returns the current line number in +self+; * Returns the current line number in +self+;
* see {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number]. * see {Line Number}[rdoc-ref:io_streams.rdoc@Line+Number].
*/ */
static VALUE static VALUE
strio_get_lineno(VALUE self) strio_get_lineno(VALUE self)
@ -665,7 +665,7 @@ strio_get_lineno(VALUE self)
* lineno = new_line_number -> new_line_number * lineno = new_line_number -> new_line_number
* *
* Sets the current line number in +self+ to the given +new_line_number+; * Sets the current line number in +self+ to the given +new_line_number+;
* see {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number]. * see {Line Number}[rdoc-ref:io_streams.rdoc@Line+Number].
*/ */
static VALUE static VALUE
strio_set_lineno(VALUE self, VALUE lineno) strio_set_lineno(VALUE self, VALUE lineno)
@ -679,7 +679,7 @@ strio_set_lineno(VALUE self, VALUE lineno)
* binmode -> self * binmode -> self
* *
* Sets the data mode in +self+ to binary mode; * Sets the data mode in +self+ to binary mode;
* see {Data Mode}[https://docs.ruby-lang.org/en/master/File.html#class-File-label-Data+Mode]. * see {Data Mode}[rdoc-ref:File@Data+Mode].
* *
*/ */
static VALUE static VALUE
@ -740,7 +740,7 @@ strio_reopen(int argc, VALUE *argv, VALUE self)
* pos -> stream_position * pos -> stream_position
* *
* Returns the current position (in bytes); * Returns the current position (in bytes);
* see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position]. * see {Position}[rdoc-ref:io_streams.rdoc@Position].
* *
* StringIO#tell is an alias for StringIO#pos. * StringIO#tell is an alias for StringIO#pos.
*/ */
@ -755,7 +755,7 @@ strio_get_pos(VALUE self)
* pos = new_position -> new_position * pos = new_position -> new_position
* *
* Sets the current position (in bytes); * Sets the current position (in bytes);
* see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position]. * see {Position}[rdoc-ref:io_streams.rdoc@Position].
*/ */
static VALUE static VALUE
strio_set_pos(VALUE self, VALUE pos) strio_set_pos(VALUE self, VALUE pos)
@ -774,8 +774,8 @@ strio_set_pos(VALUE self, VALUE pos)
* rewind -> 0 * rewind -> 0
* *
* Sets the current position and line number to zero; * Sets the current position and line number to zero;
* see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position] * see {Position}[rdoc-ref:io_streams.rdoc@Position]
* and {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number]. * and {Line Number}[rdoc-ref:io_streams.rdoc@Line+Number].
*/ */
static VALUE static VALUE
strio_rewind(VALUE self) strio_rewind(VALUE self)
@ -792,7 +792,7 @@ strio_rewind(VALUE self)
* *
* Sets the current position to the given integer +offset+ (in bytes), * Sets the current position to the given integer +offset+ (in bytes),
* with respect to a given constant +whence+; * with respect to a given constant +whence+;
* see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position]. * see {Position}[rdoc-ref:io_streams.rdoc@Position].
*/ */
static VALUE static VALUE
strio_seek(int argc, VALUE *argv, VALUE self) strio_seek(int argc, VALUE *argv, VALUE self)
@ -848,7 +848,7 @@ strio_get_sync(VALUE self)
* each_byte {|byte| ... } -> self * each_byte {|byte| ... } -> self
* *
* With a block given, calls the block with each remaining byte in the stream; * With a block given, calls the block with each remaining byte in the stream;
* see {Byte IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Byte+IO]. * see {Byte IO}[rdoc-ref:io_streams.rdoc@Byte+IO].
* *
* With no block given, returns an enumerator. * With no block given, returns an enumerator.
*/ */