aboutsummaryrefslogtreecommitdiffstats
path: root/compar.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 /compar.c
parent5d43969e921f566ba2080f83ac68b75ebccdf30b (diff)
downloadruby-0bca029d2f848cc326681d2c324712eec96808e8.tar.gz
[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 'compar.c')
-rw-r--r--compar.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/compar.c b/compar.c
index 6ee4c2c3fa..9f47a3fa62 100644
--- a/compar.c
+++ b/compar.c
@@ -288,15 +288,11 @@ cmp_clamp(int argc, VALUE *argv, VALUE x)
*
* \Module \Comparable provides these methods, all of which use method <tt><=></tt>:
*
- * - {<}[Comparable.html#method-i-3C]:
- * Returns whether +self+ is less than the given object.
- * - {<=}[Comparable.html#method-i-3C-3D]:
- * Returns whether +self+ is less than or equal to the given object.
+ * - #<: Returns whether +self+ is less than the given object.
+ * - #<=: Returns whether +self+ is less than or equal to the given object.
* - #==: Returns whether +self+ is equal to the given object.
- * - {>}[Comparable.html#method-i-3E]:
- * Returns whether +self+ is greater than or equal to the given object.
- * - {>=}[Comparable.html#method-i-3E-3D]:
- * Returns whether +self+ is greater than the given object.
+ * - #>: Returns whether +self+ is greater than or equal to the given object.
+ * - #>=: Returns whether +self+ is greater than the given object.
* - #between?: Returns +true+ if +self+ is between two given objects.
* - #clamp: For given objects +min+ and +max+, or range <tt>(min..max)</tt>, returns:
*