summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-26 21:07:06 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-30 10:54:52 +0900
commit0bca029d2f848cc326681d2c324712eec96808e8 (patch)
tree0b969cb2270dd45386dc078280b43a4f29da49ab /object.c
parent5d43969e921f566ba2080f83ac68b75ebccdf30b (diff)
[DOC] Use simple references to operator methods
Method references is not only able to be marked up as code, also reflects `--show-hash` option. The bug that prevented the old rdoc from correctly parsing these methods was fixed last month.
Diffstat (limited to 'object.c')
-rw-r--r--object.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/object.c b/object.c
index 8d5ab63c9c..296dc68322 100644
--- a/object.c
+++ b/object.c
@@ -4195,8 +4195,8 @@ 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.
+ * - #!: 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.
@@ -4240,9 +4240,9 @@ f_sprintf(int c, const VALUE *v, VALUE _)
*
* === Querying
*
- * - {!~}[#method-i-21~]: Returns +true+ if +self+ does not match the given object,
+ * - #!~: 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
+ * - #<=>: 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 #==.