@@ -1775,7 +1775,7 @@ set_proc_default(VALUE hash, VALUE proc)
17751775 * Returns a new empty \Hash object.
17761776 *
17771777 * The initial default value and initial default proc for the new hash
1778- * depend on which form above was used. See {Default Values}[#class- Hash-label- Default+Values].
1778+ * depend on which form above was used. See {Default Values}[rdoc-ref: Hash@ Default+Values].
17791779 *
17801780 * If neither an argument nor a block given,
17811781 * initializes both the default value and the default proc to <tt>nil</tt>:
@@ -2008,7 +2008,7 @@ rb_hash_rehash_i(VALUE key, VALUE value, VALUE arg)
20082008 *
20092009 * The hash table becomes invalid if the hash value of a key
20102010 * has changed after the entry was created.
2011- * See {Modifying an Active Hash Key}[#class- Hash-label- Modifying+an+Active+Hash+Key].
2011+ * See {Modifying an Active Hash Key}[rdoc-ref: Hash@ Modifying+an+Active+Hash+Key].
20122012 */
20132013
20142014VALUE
@@ -2092,7 +2092,7 @@ rb_hash_stlike_lookup(VALUE hash, st_data_t key, st_data_t *pval)
20922092 * h[:foo] # => 0
20932093 *
20942094 * If +key+ is not found, returns a default value
2095- * (see {Default Values}[#class- Hash-label- Default+Values]):
2095+ * (see {Default Values}[rdoc-ref: Hash@ Default+Values]):
20962096 * h = {foo: 0, bar: 1, baz: 2}
20972097 * h[:nosuch] # => nil
20982098 */
@@ -2201,7 +2201,7 @@ rb_hash_fetch(VALUE hash, VALUE key)
22012201 *
22022202 * Returns the default value for the given +key+.
22032203 * The returned value will be determined either by the default proc or by the default value.
2204- * See {Default Values}[#class- Hash-label- Default+Values].
2204+ * See {Default Values}[rdoc-ref: Hash@ Default+Values].
22052205 *
22062206 * With no argument, returns the current default value:
22072207 * h = {}
@@ -2238,7 +2238,7 @@ rb_hash_default(int argc, VALUE *argv, VALUE hash)
22382238 * h.default = false # => false
22392239 * h.default # => false
22402240 *
2241- * See {Default Values}[#class- Hash-label- Default+Values].
2241+ * See {Default Values}[rdoc-ref: Hash@ Default+Values].
22422242 */
22432243
22442244static VALUE
@@ -2254,7 +2254,7 @@ rb_hash_set_default(VALUE hash, VALUE ifnone)
22542254 * hash.default_proc -> proc or nil
22552255 *
22562256 * Returns the default proc for +self+
2257- * (see {Default Values}[#class- Hash-label- Default+Values]):
2257+ * (see {Default Values}[rdoc-ref: Hash@ Default+Values]):
22582258 * h = {}
22592259 * h.default_proc # => nil
22602260 * h.default_proc = proc {|hash, key| "Default value for #{key}" }
@@ -2275,7 +2275,7 @@ rb_hash_default_proc(VALUE hash)
22752275 * hash.default_proc = proc -> proc
22762276 *
22772277 * Sets the default proc for +self+ to +proc+:
2278- * (see {Default Values}[#class- Hash-label- Default+Values]):
2278+ * (see {Default Values}[rdoc-ref: Hash@ Default+Values]):
22792279 * h = {}
22802280 * h.default_proc # => nil
22812281 * h.default_proc = proc { |hash, key| "Default value for #{key}" }
@@ -2322,7 +2322,7 @@ key_i(VALUE key, VALUE value, VALUE arg)
23222322 * hash.key(value) -> key or nil
23232323 *
23242324 * Returns the key for the first-found entry with the given +value+
2325- * (see {Entry Order}[#class- Hash-label- Entry+Order]):
2325+ * (see {Entry Order}[rdoc-ref: Hash@ Entry+Order]):
23262326 * h = {foo: 0, bar: 2, baz: 2}
23272327 * h.key(0) # => :foo
23282328 * h.key(2) # => :bar
@@ -2458,7 +2458,7 @@ shift_i_safe(VALUE key, VALUE value, VALUE arg)
24582458 * hash.shift -> [key, value] or nil
24592459 *
24602460 * Removes the first hash entry
2461- * (see {Entry Order}[#class- Hash-label- Entry+Order]);
2461+ * (see {Entry Order}[rdoc-ref: Hash@ Entry+Order]);
24622462 * returns a 2-element \Array containing the removed key and value:
24632463 * h = {foo: 0, bar: 1, baz: 2}
24642464 * h.shift # => [:foo, 0]
@@ -2680,7 +2680,7 @@ rb_hash_except(int argc, VALUE *argv, VALUE hash)
26802680 * h = {foo: 0, bar: 1, baz: 2}
26812681 * h.values_at(:baz, :foo) # => [2, 0]
26822682 *
2683- * The {default values}[#class- Hash-label- Default+Values] are returned
2683+ * The {default values}[rdoc-ref: Hash@ Default+Values] are returned
26842684 * for any keys that are not found:
26852685 * h.values_at(:hello, :foo) # => [nil, 0]
26862686 */
@@ -2902,15 +2902,15 @@ NOINSERT_UPDATE_CALLBACK(hash_aset_str)
29022902 *
29032903 * If the given +key+ exists, replaces its value with the given +value+;
29042904 * the ordering is not affected
2905- * (see {Entry Order}[#class- Hash-label- Entry+Order]):
2905+ * (see {Entry Order}[rdoc-ref: Hash@ Entry+Order]):
29062906 * h = {foo: 0, bar: 1}
29072907 * h[:foo] = 2 # => 2
29082908 * h.store(:bar, 3) # => 3
29092909 * h # => {:foo=>2, :bar=>3}
29102910 *
29112911 * If +key+ does not exist, adds the +key+ and +value+;
29122912 * the new entry is last in the order
2913- * (see {Entry Order}[#class- Hash-label- Entry+Order]):
2913+ * (see {Entry Order}[rdoc-ref: Hash@ Entry+Order]):
29142914 * h = {foo: 0, bar: 1}
29152915 * h[:baz] = 2 # => 2
29162916 * h.store(:bat, 3) # => 3
@@ -3872,7 +3872,7 @@ rb_hash_invert_i(VALUE key, VALUE value, VALUE hash)
38723872 * h1 # => {0=>:foo, 1=>:bar, 2=>:baz}
38733873 *
38743874 * Overwrites any repeated new keys:
3875- * (see {Entry Order}[#class- Hash-label- Entry+Order]):
3875+ * (see {Entry Order}[rdoc-ref: Hash@ Entry+Order]):
38763876 * h = {foo: 0, bar: 0, baz: 0}
38773877 * h.invert # => {0=>:baz}
38783878 */
@@ -4202,7 +4202,7 @@ rassoc_i(VALUE key, VALUE val, VALUE arg)
42024202 *
42034203 * Returns a new 2-element \Array consisting of the key and value
42044204 * of the first-found entry whose value is <tt>==</tt> to value
4205- * (see {Entry Order}[#class- Hash-label- Entry+Order]):
4205+ * (see {Entry Order}[rdoc-ref: Hash@ Entry+Order]):
42064206 * h = {foo: 0, bar: 1, baz: 1}
42074207 * h.rassoc(1) # => [:bar, 1]
42084208 *
@@ -4564,7 +4564,7 @@ rb_hash_any_p(int argc, VALUE *argv, VALUE hash)
45644564 * h = {foo: {bar: [:a, :b, :c]}}
45654565 * h.dig(:foo, :bar, 2) # => :c
45664566 *
4567- * This method will use the {default values}[#class- Hash-label- Default+Values]
4567+ * This method will use the {default values}[rdoc-ref: Hash@ Default+Values]
45684568 * for keys that are not present:
45694569 * h = {foo: {bar: [:a, :b, :c]}}
45704570 * h.dig(:hello) # => nil
@@ -4968,7 +4968,7 @@ env_delete(VALUE name)
49684968 * ENV.delete('foo') { |name| raise 'ignored' } # => "0"
49694969 *
49704970 * Raises an exception if +name+ is invalid.
4971- * See {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values].
4971+ * See {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values].
49724972 */
49734973static VALUE
49744974env_delete_m (VALUE obj , VALUE name )
@@ -4990,7 +4990,7 @@ env_delete_m(VALUE obj, VALUE name)
49904990 * Returns +nil+ if the named variable does not exist.
49914991 *
49924992 * Raises an exception if +name+ is invalid.
4993- * See {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values].
4993+ * See {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values].
49944994 */
49954995static VALUE
49964996rb_f_getenv (VALUE obj , VALUE name )
@@ -5023,7 +5023,7 @@ rb_f_getenv(VALUE obj, VALUE name)
50235023 * and neither default value nor block is given:
50245024 * ENV.fetch('foo') # Raises KeyError (key not found: "foo")
50255025 * Raises an exception if +name+ is invalid.
5026- * See {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values].
5026+ * See {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values].
50275027 */
50285028static VALUE
50295029env_fetch (int argc , VALUE * argv , VALUE _ )
@@ -5338,7 +5338,7 @@ ruby_unsetenv(const char *name)
53385338 *
53395339 * Creates, updates, or deletes the named environment variable, returning the value.
53405340 * Both +name+ and +value+ may be instances of String.
5341- * See {Valid Names and Values}[#class- ENV-label- Valid+Names+and+Values].
5341+ * See {Valid Names and Values}[rdoc-ref: ENV@ Valid+Names+and+Values].
53425342 *
53435343 * - If the named environment variable does not exist:
53445344 * - If +value+ is +nil+, does nothing.
@@ -5371,7 +5371,7 @@ ruby_unsetenv(const char *name)
53715371 * ENV.include?('bar') # => false
53725372 *
53735373 * Raises an exception if +name+ or +value+ is invalid.
5374- * See {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values].
5374+ * See {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values].
53755375 */
53765376static VALUE
53775377env_aset_m (VALUE obj , VALUE nm , VALUE val )
@@ -5434,7 +5434,7 @@ env_keys(int raw)
54345434 * ENV.replace('foo' => '0', 'bar' => '1')
54355435 * ENV.keys # => ['bar', 'foo']
54365436 * The order of the names is OS-dependent.
5437- * See {About Ordering}[#class- ENV-label- About+Ordering].
5437+ * See {About Ordering}[rdoc-ref: ENV@ About+Ordering].
54385438 *
54395439 * Returns the empty Array if ENV is empty.
54405440 */
@@ -5528,7 +5528,7 @@ env_values(void)
55285528 * ENV.replace('foo' => '0', 'bar' => '1')
55295529 * ENV.values # => ['1', '0']
55305530 * The order of the values is OS-dependent.
5531- * See {About Ordering}[#class- ENV-label- About+Ordering].
5531+ * See {About Ordering}[rdoc-ref: ENV@ About+Ordering].
55325532 *
55335533 * Returns the empty Array if ENV is empty.
55345534 */
@@ -5715,7 +5715,7 @@ env_delete_if(VALUE ehash)
57155715 * Returns an empty \Array if no names given.
57165716 *
57175717 * Raises an exception if any name is invalid.
5718- * See {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values].
5718+ * See {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values].
57195719 */
57205720static VALUE
57215721env_values_at (int argc , VALUE * argv , VALUE _ )
@@ -5871,7 +5871,7 @@ env_keep_if(VALUE ehash)
58715871 * ENV.slice('foo', 'baz') # => {"foo"=>"0", "baz"=>"2"}
58725872 * ENV.slice('baz', 'foo') # => {"baz"=>"2", "foo"=>"0"}
58735873 * Raises an exception if any of the +names+ is invalid
5874- * (see {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values]):
5874+ * (see {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values]):
58755875 * ENV.slice('foo', 'bar', :bat) # Raises TypeError (no implicit conversion of Symbol into String)
58765876 */
58775877static VALUE
@@ -6204,7 +6204,7 @@ env_has_value(VALUE dmy, VALUE obj)
62046204 * ENV.replace('foo' => '0', 'bar' => '0')
62056205 * ENV.rassoc('0') # => ["bar", "0"]
62066206 * The order in which environment variables are examined is OS-dependent.
6207- * See {About Ordering}[#class- ENV-label- About+Ordering].
6207+ * See {About Ordering}[rdoc-ref: ENV@ About+Ordering].
62086208 *
62096209 * Returns +nil+ if there is no such environment variable.
62106210 */
@@ -6247,13 +6247,13 @@ env_rassoc(VALUE dmy, VALUE obj)
62476247 * ENV.replace('foo' => '0', 'bar' => '0')
62486248 * ENV.key('0') # => "foo"
62496249 * The order in which environment variables are examined is OS-dependent.
6250- * See {About Ordering}[#class- ENV-label- About+Ordering].
6250+ * See {About Ordering}[rdoc-ref: ENV@ About+Ordering].
62516251 *
62526252 * Returns +nil+ if there is no such value.
62536253 *
62546254 * Raises an exception if +value+ is invalid:
62556255 * ENV.key(Object.new) # raises TypeError (no implicit conversion of Object into String)
6256- * See {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values].
6256+ * See {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values].
62576257 */
62586258static VALUE
62596259env_key (VALUE dmy , VALUE value )
@@ -6430,7 +6430,7 @@ env_freeze(VALUE self)
64306430 * ENV.shift # => ['bar', '1']
64316431 * ENV.to_hash # => {'foo' => '0'}
64326432 * Exactly which environment variable is "first" is OS-dependent.
6433- * See {About Ordering}[#class- ENV-label- About+Ordering].
6433+ * See {About Ordering}[rdoc-ref: ENV@ About+Ordering].
64346434 *
64356435 * Returns +nil+ if the environment is empty.
64366436 */
@@ -6476,7 +6476,7 @@ env_shift(VALUE _)
64766476 * ENV.invert # => {"0"=>"foo"}
64776477 * Note that the order of the ENV processing is OS-dependent,
64786478 * which means that the order of overwriting is also OS-dependent.
6479- * See {About Ordering}[#class- ENV-label- About+Ordering].
6479+ * See {About Ordering}[rdoc-ref: ENV@ About+Ordering].
64806480 */
64816481static VALUE
64826482env_invert (VALUE _ )
@@ -6526,7 +6526,7 @@ env_replace_i(VALUE key, VALUE val, VALUE keys)
65266526 * ENV.to_hash # => {"bar"=>"1", "foo"=>"0"}
65276527 *
65286528 * Raises an exception if a name or value is invalid
6529- * (see {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values]):
6529+ * (see {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values]):
65306530 * ENV.replace('foo' => '0', :bar => '1') # Raises TypeError (no implicit conversion of Symbol into String)
65316531 * ENV.replace('foo' => '0', 'bar' => 1) # Raises TypeError (no implicit conversion of Integer into String)
65326532 * ENV.to_hash # => {"bar"=>"1", "foo"=>"0"}
@@ -6588,14 +6588,14 @@ env_update_block_i(VALUE key, VALUE val, VALUE _)
65886588 * the block's return value becomes the new name:
65896589 * ENV.merge!('foo' => '5') { |name, env_val, hash_val | env_val + hash_val } # => {"bar"=>"1", "foo"=>"45"}
65906590 * Raises an exception if a name or value is invalid
6591- * (see {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values]);
6591+ * (see {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values]);
65926592 * ENV.replace('foo' => '0', 'bar' => '1')
65936593 * ENV.merge!('foo' => '6', :bar => '7', 'baz' => '9') # Raises TypeError (no implicit conversion of Symbol into String)
65946594 * ENV # => {"bar"=>"1", "foo"=>"6"}
65956595 * ENV.merge!('foo' => '7', 'bar' => 8, 'baz' => '9') # Raises TypeError (no implicit conversion of Integer into String)
65966596 * ENV # => {"bar"=>"1", "foo"=>"7"}
65976597 * Raises an exception if the block returns an invalid name:
6598- * (see {Invalid Names and Values}[#class- ENV-label- Invalid+Names+and+Values]):
6598+ * (see {Invalid Names and Values}[rdoc-ref: ENV@ Invalid+Names+and+Values]):
65996599 * ENV.merge!('bat' => '8', 'foo' => '9') { |name, env_val, hash_val | 10 } # Raises TypeError (no implicit conversion of Integer into String)
66006600 * ENV # => {"bar"=>"1", "bat"=>"8", "foo"=>"7"}
66016601 *
@@ -7020,17 +7020,17 @@ static const rb_data_type_t env_data_type = {
70207020 *
70217021 * Here, class \Hash provides methods that are useful for:
70227022 *
7023- * - {Creating a Hash}[#class- Hash-label- Methods+for+Creating+a+Hash]
7024- * - {Setting Hash State}[#class- Hash-label- Methods+for+Setting+Hash+State]
7025- * - {Querying}[#class- Hash-label- Methods+for+Querying]
7026- * - {Comparing}[#class- Hash-label- Methods+for+Comparing]
7027- * - {Fetching}[#class- Hash-label- Methods+for+Fetching]
7028- * - {Assigning}[#class- Hash-label- Methods+for+Assigning]
7029- * - {Deleting}[#class- Hash-label- Methods+for+Deleting]
7030- * - {Iterating}[#class- Hash-label- Methods+for+Iterating]
7031- * - {Converting}[#class- Hash-label- Methods+for+Converting]
7032- * - {Transforming Keys and Values}[#class- Hash-label- Methods+for+Transforming+Keys+and+Values]
7033- * - {And more....}[#class- Hash-label- Other+Methods]
7023+ * - {Creating a Hash}[rdoc-ref: Hash@ Methods+for+Creating+a+Hash]
7024+ * - {Setting Hash State}[rdoc-ref: Hash@ Methods+for+Setting+Hash+State]
7025+ * - {Querying}[rdoc-ref: Hash@ Methods+for+Querying]
7026+ * - {Comparing}[rdoc-ref: Hash@ Methods+for+Comparing]
7027+ * - {Fetching}[rdoc-ref: Hash@ Methods+for+Fetching]
7028+ * - {Assigning}[rdoc-ref: Hash@ Methods+for+Assigning]
7029+ * - {Deleting}[rdoc-ref: Hash@ Methods+for+Deleting]
7030+ * - {Iterating}[rdoc-ref: Hash@ Methods+for+Iterating]
7031+ * - {Converting}[rdoc-ref: Hash@ Methods+for+Converting]
7032+ * - {Transforming Keys and Values}[rdoc-ref: Hash@ Methods+for+Transforming+Keys+and+Values]
7033+ * - {And more....}[rdoc-ref: Hash@ Other+Methods]
70347034 *
70357035 * \Class \Hash also includes methods from module Enumerable.
70367036 *
@@ -7332,12 +7332,12 @@ Init_Hash(void)
73327332 *
73337333 * Here, class \ENV provides methods that are useful for:
73347334 *
7335- * - {Querying}[#class- ENV-label- Methods+for+Querying]
7336- * - {Assigning}[#class- ENV-label- Methods+for+Assigning]
7337- * - {Deleting}[#class- ENV-label- Methods+for+Deleting]
7338- * - {Iterating}[#class- ENV-label- Methods+for+Iterating]
7339- * - {Converting}[#class- ENV-label- Methods+for+Converting]
7340- * - {And more ....}[#class- ENV-label- More+Methods]
7335+ * - {Querying}[rdoc-ref: ENV@ Methods+for+Querying]
7336+ * - {Assigning}[rdoc-ref: ENV@ Methods+for+Assigning]
7337+ * - {Deleting}[rdoc-ref: ENV@ Methods+for+Deleting]
7338+ * - {Iterating}[rdoc-ref: ENV@ Methods+for+Iterating]
7339+ * - {Converting}[rdoc-ref: ENV@ Methods+for+Converting]
7340+ * - {And more ....}[rdoc-ref: ENV@ More+Methods]
73417341 *
73427342 * === Methods for Querying
73437343 *
0 commit comments