[DOC] Simplify links to global methods

This commit is contained in:
Nobuyoshi Nakada 2022-02-08 01:18:56 +09:00
parent f53f49197f
commit bc5662d9d8
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
6 changed files with 7 additions and 7 deletions

View File

@ -7849,7 +7849,7 @@ rb_ary_deconstruct(VALUE ary)
* *
* You can convert certain objects to Arrays with: * You can convert certain objects to Arrays with:
* *
* - \Method {Array}[Kernel.html#method-i-Array]. * - \Method #Array.
* *
* An \Array can contain different types of objects. For * An \Array can contain different types of objects. For
* example, the array below contains an Integer, a String and a Float: * example, the array below contains an Integer, a String and a Float:

View File

@ -2273,7 +2273,7 @@ float_arg(VALUE self)
* *
* You can convert certain objects to \Complex objects with: * You can convert certain objects to \Complex objects with:
* *
* - \Method {Complex}[Kernel.html#method-i-Complex]. * - \Method #Complex.
* *
* Complex object can be created as literal, and also by using * Complex object can be created as literal, and also by using
* Kernel#Complex, Complex::rect, Complex::polar or to_c method. * Kernel#Complex, Complex::rect, Complex::polar or to_c method.

2
hash.c
View File

@ -6750,7 +6750,7 @@ static const rb_data_type_t env_data_type = {
* *
* You can convert certain objects to Hashes with: * You can convert certain objects to Hashes with:
* *
* - \Method {Hash}[Kernel.html#method-i-Hash]. * - \Method #Hash.
* *
* You can create a \Hash by calling method Hash.new. * You can create a \Hash by calling method Hash.new.
* *

View File

@ -952,7 +952,7 @@ num_negative_p(VALUE num)
* *
* You can convert certain objects to Floats with: * You can convert certain objects to Floats with:
* *
* - \Method {Float}[Kernel.html#method-i-Float]. * - \Method #Float.
* *
* == What's Here * == What's Here
* *
@ -3486,7 +3486,7 @@ rb_num2ull(VALUE val)
* *
* You can convert certain objects to Integers with: * You can convert certain objects to Integers with:
* *
* - \Method {Integer}[Kernel.html#method-i-Integer]. * - \Method #Integer.
* *
* An attempt to add a singleton method to an instance of this class * An attempt to add a singleton method to an instance of this class
* causes an exception to be raised. * causes an exception to be raised.

View File

@ -2721,7 +2721,7 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass)
* *
* You can convert certain objects to Rationals with: * You can convert certain objects to Rationals with:
* *
* - \Method {Rational}[Kernel.html#method-i-Rational]. * - \Method #Rational.
* *
* Examples * Examples
* *

View File

@ -11965,7 +11965,7 @@ rb_enc_interned_str_cstr(const char *ptr, rb_encoding *enc)
* *
* You can convert certain objects to Strings with: * You can convert certain objects to Strings with:
* *
* - \Method {String}[Kernel.html#method-i-String]. * - \Method #String.
* *
* Some \String methods modify +self+. * Some \String methods modify +self+.
* Typically, a method whose name ends with <tt>!</tt> modifies +self+ * Typically, a method whose name ends with <tt>!</tt> modifies +self+