diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-02-11 10:30:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-02-12 12:38:36 +0900 |
commit | 50c972a1ae1b15b292f45e78ff3227644f3cabda (patch) | |
tree | 294a94a2e5ba8326a3a313293e319458a7010e28 /object.c | |
parent | e6b537e605381b6f1c9518adbeb6813c5e579df7 (diff) |
[DOC] Simplify operator method references
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 32 |
1 files changed, 14 insertions, 18 deletions
@@ -4119,11 +4119,9 @@ f_sprintf(int c, const VALUE *v, VALUE _) * These are the methods defined for \BasicObject: * * - ::new:: Returns a new \BasicObject instance. - * - {!}[#method-i-21]:: Returns the boolean negation of +self+: +true+ or +false+. - * - {!=}[#method-i-21-3D]:: Returns whether +self+ and the given object - * are _not_ equal. - * - {==}[#method-i-3D-3D]:: Returns whether +self+ and the given object - * are equivalent. + * - #!:: Returns the boolean negation of +self+: +true+ or +false+. + * - #!=:: Returns whether +self+ and the given object are _not_ equal. + * - #==:: Returns whether +self+ and the given object are equivalent. * - {__id__}[#method-i-__id__]:: Returns the integer object identifier for +self+. * - {__send__}[#method-i-__send__]:: Calls the method identified by the given symbol. * - #equal?:: Returns whether +self+ and the given object are the same object. @@ -4173,11 +4171,10 @@ f_sprintf(int c, const VALUE *v, VALUE _) * * === Querying * - * - {!~}[#method-i-21~]:: Returns +true+ if +self+ does not match the given object, - * otherwise +false+. - * - {<=>}[#method-i-3C-3D-3E]:: Returns 0 if +self+ and the given object +object+ - * are the same object, or if - * <tt>self == object</tt>; otherwise returns +nil+. + * - #!~:: Returns +true+ if +self+ does not match the given object, + * otherwise +false+. + * - #<=>:: Returns 0 if +self+ and the given object +object+ are the same + * object, or if <tt>self == object</tt>; otherwise returns +nil+. * - #===:: Implements case equality, effectively the same as calling #==. * - #eql?:: Implements hash equality, effectively the same as calling #==. * - #kind_of? (aliased as #is_a?):: Returns whether given argument is an ancestor @@ -4319,14 +4316,13 @@ InitVM_Object(void) * * === Converting * - * - {#Array}[#method-i-Array]:: Returns an Array based on the given argument. - * - {#Complex}[#method-i-Complex]:: Returns a Complex based on the given arguments. - * - {#Float}[#method-i-Float]:: Returns a Float based on the given arguments. - * - {#Hash}[#method-i-Hash]:: Returns a Hash based on the given argument. - * - {#Integer}[#method-i-Integer]:: Returns an Integer based on the given arguments. - * - {#Rational}[#method-i-Rational]:: Returns a Rational - * based on the given arguments. - * - {#String}[#method-i-String]:: Returns a String based on the given argument. + * - #Array:: Returns an Array based on the given argument. + * - #Complex:: Returns a Complex based on the given arguments. + * - #Float:: Returns a Float based on the given arguments. + * - #Hash:: Returns a Hash based on the given argument. + * - #Integer:: Returns an Integer based on the given arguments. + * - #Rational:: Returns a Rational based on the given arguments. + * - #String:: Returns a String based on the given argument. * * === Querying * |