Skip to content

Commit fed528a

Browse files
committed
[DOC] Remove the name from same file references
1 parent beb85e7 commit fed528a

File tree

6 files changed

+56
-57
lines changed

6 files changed

+56
-57
lines changed

doc/encodings.rdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ A Ruby String object has an encoding that is an instance of class \Encoding.
138138
The encoding may be retrieved by method String#encoding.
139139

140140
The default encoding for a string literal is the script encoding;
141-
see {Script Encoding}[rdoc-ref:encodings.rdoc@Script+Encoding].
141+
see {Script Encoding}[rdoc-ref:@Script+Encoding].
142142

143143
's'.encoding # => #<Encoding:UTF-8>
144144

@@ -147,7 +147,7 @@ The default encoding for a string created with method String.new is:
147147
- For no argument, ASCII-8BIT.
148148
- For a \String object argument, the encoding of that string.
149149
- For a string literal, the script encoding;
150-
see {Script Encoding}[rdoc-ref:encodings.rdoc@Script+Encoding].
150+
see {Script Encoding}[rdoc-ref:@Script+Encoding].
151151

152152
In either case, any encoding may be specified:
153153

@@ -193,7 +193,7 @@ The default encoding for these, however, is:
193193

194194
- US-ASCII, if all characters are US-ASCII.
195195
- The script encoding, otherwise;
196-
see (Script Encoding)[rdoc-ref:encodings.rdoc@Script+Encoding].
196+
see (Script Encoding)[rdoc-ref:@Script+Encoding].
197197

198198
== Filesystem \Encoding
199199

doc/format_specifications.rdoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,42 +46,42 @@ The links lead to the details and examples.
4646
=== \Integer Type Specifiers
4747

4848
- +b+ or +B+: Format +argument+ as a binary integer.
49-
See {Specifiers b and B}[rdoc-ref:format_specifications.rdoc@Specifiers+b+and+B].
49+
See {Specifiers b and B}[rdoc-ref:@Specifiers+b+and+B].
5050
- +d+, +i+, or +u+ (all are identical):
5151
Format +argument+ as a decimal integer.
52-
See {Specifier d}[rdoc-ref:format_specifications.rdoc@Specifier+d].
52+
See {Specifier d}[rdoc-ref:@Specifier+d].
5353
- +o+: Format +argument+ as an octal integer.
54-
See {Specifier o}[rdoc-ref:format_specifications.rdoc@Specifier+o].
54+
See {Specifier o}[rdoc-ref:@Specifier+o].
5555
- +x+ or +X+: Format +argument+ as a hexadecimal integer.
56-
See {Specifiers x and X}[rdoc-ref:format_specifications.rdoc@Specifiers+x+and+X].
56+
See {Specifiers x and X}[rdoc-ref:@Specifiers+x+and+X].
5757

5858
=== Floating-Point Type Specifiers
5959

6060
- +a+ or +A+: Format +argument+ as hexadecimal floating-point number.
61-
See {Specifiers a and A}[rdoc-ref:format_specifications.rdoc@Specifiers+a+and+A].
61+
See {Specifiers a and A}[rdoc-ref:@Specifiers+a+and+A].
6262
- +e+ or +E+: Format +argument+ in scientific notation.
63-
See {Specifiers e and E}[rdoc-ref:format_specifications.rdoc@Specifiers+e+and+E].
63+
See {Specifiers e and E}[rdoc-ref:@Specifiers+e+and+E].
6464
- +f+: Format +argument+ as a decimal floating-point number.
65-
See {Specifier f}[rdoc-ref:format_specifications.rdoc@Specifier+f].
65+
See {Specifier f}[rdoc-ref:@Specifier+f].
6666
- +g+ or +G+: Format +argument+ in a "general" format.
67-
See {Specifiers g and G}[rdoc-ref:format_specifications.rdoc@Specifiers+g+and+G].
67+
See {Specifiers g and G}[rdoc-ref:@Specifiers+g+and+G].
6868

6969
=== Other Type Specifiers
7070

7171
- +c+: Format +argument+ as a character.
72-
See {Specifier c}[rdoc-ref:format_specifications.rdoc@Specifier+c].
72+
See {Specifier c}[rdoc-ref:@Specifier+c].
7373
- +p+: Format +argument+ as a string via <tt>argument.inspect</tt>.
74-
See {Specifier p}[rdoc-ref:format_specifications.rdoc@Specifier+p].
74+
See {Specifier p}[rdoc-ref:@Specifier+p].
7575
- +s+: Format +argument+ as a string via <tt>argument.to_s</tt>.
76-
See {Specifier s}[rdoc-ref:format_specifications.rdoc@Specifier+s].
76+
See {Specifier s}[rdoc-ref:@Specifier+s].
7777
- <tt>%</tt>: Format +argument+ (<tt>'%'</tt>) as a single percent character.
78-
See {Specifier %}[rdoc-ref:format_specifications.rdoc@Specifier+-25].
78+
See {Specifier %}[rdoc-ref:@Specifier+-25].
7979

8080
== Flags
8181

8282
The effect of a flag may vary greatly among type specifiers.
8383
These remarks are general in nature.
84-
See {type-specific details}[rdoc-ref:format_specifications.rdoc@Type+Specifier+Details+and+Examples].
84+
See {type-specific details}[rdoc-ref:@Type+Specifier+Details+and+Examples].
8585

8686
Multiple flags may be given with single type specifier;
8787
order does not matter.

doc/packed_data.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Any directive may be followed by either of these modifiers:
159159
'AB'.unpack('C3') # => [65, 66, nil]
160160

161161
Note: Directives in <tt>%w[A a Z m]</tt> use +count+ differently;
162-
see {String Directives}[rdoc-ref:packed_data.rdoc@String+Directives].
162+
see {String Directives}[rdoc-ref:@String+Directives].
163163

164164
If elements don't fit the provided directive, only least significant bits are encoded:
165165

doc/ruby/options.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ nil
6868

6969
See also:
7070

71-
- {Option -a}[rdoc-ref:ruby/options.md@a-3A+Split+Input+Lines+into+Fields]:
71+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
7272
Split input lines into fields.
73-
- {Option -F}[rdoc-ref:ruby/options.md@F-3A+Set+Input+Field+Separator]:
73+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
7474
Set input field separator.
75-
- {Option -l}[rdoc-ref:ruby/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
75+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
7676
Set output record separator; chop lines.
77-
- {Option -n}[rdoc-ref:ruby/options.md@n-3A+Run+Program+in+gets+Loop]:
77+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
7878
Run program in `gets` loop.
79-
- {Option -p}[rdoc-ref:ruby/options.md@p-3A+-n-2C+with+Printing]:
79+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
8080
`-n`, with printing.
8181

8282
### `-a`: Split Input Lines into Fields
@@ -98,15 +98,15 @@ and the default field separator is `$;`.
9898

9999
See also:
100100

101-
- {Option -0}[rdoc-ref:ruby/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
101+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
102102
Set `$/` (input record separator).
103-
- {Option -F}[rdoc-ref:ruby/options.md@F-3A+Set+Input+Field+Separator]:
103+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
104104
Set input field separator.
105-
- {Option -l}[rdoc-ref:ruby/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
105+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
106106
Set output record separator; chop lines.
107-
- {Option -n}[rdoc-ref:ruby/options.md@n-3A+Run+Program+in+gets+Loop]:
107+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
108108
Run program in `gets` loop.
109-
- {Option -p}[rdoc-ref:ruby/options.md@p-3A+-n-2C+with+Printing]:
109+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
110110
`-n`, with printing.
111111

112112
### `-c`: Check Syntax
@@ -228,15 +228,15 @@ The argument must immediately follow the option
228228

229229
See also:
230230

231-
- {Option -0}[rdoc-ref:ruby/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
231+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
232232
Set `$/` (input record separator).
233-
- {Option -a}[rdoc-ref:ruby/options.md@a-3A+Split+Input+Lines+into+Fields]:
233+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
234234
Split input lines into fields.
235-
- {Option -l}[rdoc-ref:ruby/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
235+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
236236
Set output record separator; chop lines.
237-
- {Option -n}[rdoc-ref:ruby/options.md@n-3A+Run+Program+in+gets+Loop]:
237+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
238238
Run program in `gets` loop.
239-
- {Option -p}[rdoc-ref:ruby/options.md@p-3A+-n-2C+with+Printing]:
239+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
240240
`-n`, with printing.
241241

242242
### `-h`: Print Short Help Message
@@ -314,15 +314,15 @@ $ ruby -ln -e 'p $_' desiderata.txt
314314

315315
See also:
316316

317-
- {Option -0}[rdoc-ref:ruby/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
317+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
318318
Set `$/` (input record separator).
319-
- {Option -a}[rdoc-ref:ruby/options.md@a-3A+Split+Input+Lines+into+Fields]:
319+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
320320
Split input lines into fields.
321-
- {Option -F}[rdoc-ref:ruby/options.md@F-3A+Set+Input+Field+Separator]:
321+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
322322
Set input field separator.
323-
- {Option -n}[rdoc-ref:ruby/options.md@n-3A+Run+Program+in+gets+Loop]:
323+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
324324
Run program in `gets` loop.
325-
- {Option -p}[rdoc-ref:ruby/options.md@p-3A+-n-2C+with+Printing]:
325+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
326326
`-n`, with printing.
327327

328328
### `-n`: Run Program in `gets` Loop
@@ -348,15 +348,15 @@ be on good terms with all persons.
348348

349349
See also:
350350

351-
- {Option -0}[rdoc-ref:ruby/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
351+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
352352
Set `$/` (input record separator).
353-
- {Option -a}[rdoc-ref:ruby/options.md@a-3A+Split+Input+Lines+into+Fields]:
353+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
354354
Split input lines into fields.
355-
- {Option -F}[rdoc-ref:ruby/options.md@F-3A+Set+Input+Field+Separator]:
355+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
356356
Set input field separator.
357-
- {Option -l}[rdoc-ref:ruby/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
357+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
358358
Set output record separator; chop lines.
359-
- {Option -p}[rdoc-ref:ruby/options.md@p-3A+-n-2C+with+Printing]:
359+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
360360
`-n`, with printing.
361361

362362
### `-p`: `-n`, with Printing
@@ -377,15 +377,15 @@ be on good terms with all persons.
377377

378378
See also:
379379

380-
- {Option -0}[rdoc-ref:ruby/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
380+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
381381
Set `$/` (input record separator).
382-
- {Option -a}[rdoc-ref:ruby/options.md@a-3A+Split+Input+Lines+into+Fields]:
382+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
383383
Split input lines into fields.
384-
- {Option -F}[rdoc-ref:ruby/options.md@F-3A+Set+Input+Field+Separator]:
384+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
385385
Set input field separator.
386-
- {Option -l}[rdoc-ref:ruby/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
386+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
387387
Set output record separator; chop lines.
388-
- {Option -n}[rdoc-ref:ruby/options.md@n-3A+Run+Program+in+gets+Loop]:
388+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
389389
Run program in `gets` loop.
390390

391391
### `-r`: Require Library
@@ -434,7 +434,7 @@ $ ruby -s t.rb -foo=baz -bar=bat
434434
```
435435

436436
The option may not be used with
437-
{option -e}[rdoc-ref:ruby/options.md@e-3A+Execute+Given+Ruby+Code]
437+
{option -e}[rdoc-ref:@e-3A+Execute+Given+Ruby+Code]
438438

439439
### `-S`: Search Directories in `ENV['PATH']`
440440

@@ -583,7 +583,7 @@ ruby - Copyright (C) 1993-2024 Yukihiro Matsumoto
583583
### `--debug`: Alias for `-d`
584584

585585
Option `--debug` is an alias for
586-
{option -d}[rdoc-ref:ruby/options.md@d-3A+Set+-24DEBUG+to+true].
586+
{option -d}[rdoc-ref:@d-3A+Set+-24DEBUG+to+true].
587587

588588
### `--disable`: Disable Features
589589

@@ -617,9 +617,9 @@ option was given:
617617
- `--dump=help`:
618618
Same as {option \-\-help}[options_md.html#label--help-3A+Print+Help+Message].
619619
- `--dump=syntax`:
620-
Same as {option -c}[rdoc-ref:ruby/options.md@c-3A+Check+Syntax].
620+
Same as {option -c}[rdoc-ref:@c-3A+Check+Syntax].
621621
- `--dump=usage`:
622-
Same as {option -h}[rdoc-ref:ruby/options.md@h-3A+Print+Short+Help+Message].
622+
Same as {option -h}[rdoc-ref:@h-3A+Print+Short+Help+Message].
623623
- `--dump=version`:
624624
Same as {option \-\-version}[options_md.html#label--version-3A+Print+Ruby+Version].
625625

@@ -641,7 +641,7 @@ see {option --disable}[options_md.html#label--disable-3A+Disable+Features].
641641
### `--encoding`: Alias for `-E`.
642642

643643
Option `--encoding` is an alias for
644-
{option -E}[rdoc-ref:ruby/options.md@E-3A+Set+Default+Encodings].
644+
{option -E}[rdoc-ref:@E-3A+Set+Default+Encodings].
645645

646646
### `--external-encoding`: Set Default External \Encoding
647647

doc/strftime_formatting.rdoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ the only required part is the conversion specifier, so we begin with that.
136136
t = Time.now # => 2022-06-29 07:10:20.3230914 -0500
137137
t.strftime('%N') # => "323091400" # Default.
138138

139-
Use {width specifiers}[rdoc-ref:strftime_formatting.rdoc@Width+Specifiers]
139+
Use {width specifiers}[rdoc-ref:@Width+Specifiers]
140140
to adjust units:
141141

142142
t.strftime('%3N') # => "323" # Milliseconds.
@@ -522,6 +522,5 @@ An ISO 8601 combined date and time representation may be any
522522
ISO 8601 date and any ISO 8601 time,
523523
separated by the letter +T+.
524524

525-
For the relevant +strftime+ formats, see
526-
{Dates}[rdoc-ref:strftime_formatting.rdoc@Dates]
527-
and {Times}[rdoc-ref:strftime_formatting.rdoc@Times] above.
525+
For the relevant +strftime+ formats, see {Dates}[rdoc-ref:@Dates] and
526+
{Times}[rdoc-ref:@Times] above.

doc/syntax/assignment.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Assignment creates a local variable if the variable was not previously
99
referenced.
1010

1111
An assignment expression result is always the assigned value, including
12-
{assignment methods}[rdoc-ref:syntax/assignment.rdoc@Assignment+Methods].
12+
{assignment methods}[rdoc-ref:@Assignment+Methods].
1313

1414
== Local Variable Names
1515

0 commit comments

Comments
 (0)