summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-11 10:30:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-12 12:38:36 +0900
commit50c972a1ae1b15b292f45e78ff3227644f3cabda (patch)
tree294a94a2e5ba8326a3a313293e319458a7010e28 /numeric.c
parente6b537e605381b6f1c9518adbeb6813c5e579df7 (diff)
downloadruby-50c972a1ae1b15b292f45e78ff3227644f3cabda.tar.gz
[DOC] Simplify operator method references
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c54
1 files changed, 26 insertions, 28 deletions
diff --git a/numeric.c b/numeric.c
index b2f41a3f86..61f93c4f01 100644
--- a/numeric.c
+++ b/numeric.c
@@ -975,25 +975,24 @@ num_negative_p(VALUE num)
*
* === Comparing
*
- * - {<}[#method-i-3C]:: Returns whether +self+ is less than the given value.
- * - {<=}[#method-i-3C-3D]:: Returns whether +self+ is less than
- * or equal to the given value.
- * - {<=>}[#method-i-3C-3D-3E]:: Returns a number indicating whether +self+ is less than,
- * equal to, or greater than the given value.
- * - {==}[#method-i-3D-3D] (aliased as #=== and #eql>):: Returns whether +self+ is
- * equal to the given value.
- * - {>}[#method-i-3E]:: Returns whether +self+ is greater than the given value.
- * - {>=}[#method-i-3E-3D]:: Returns whether +self+ is greater than
- * or equal to the given value.
+ * - #<:: Returns whether +self+ is less than the given value.
+ * - #<=:: Returns whether +self+ is less than or equal to the given value.
+ * - #<=>:: Returns a number indicating whether +self+ is less than, equal
+ * to, or greater than the given value.
+ * - #== (aliased as #=== and #eql?):: Returns whether +self+ is equal to
+ * the given value.
+ * - #>:: Returns whether +self+ is greater than the given value.
+ * - #>=:: Returns whether +self+ is greater than or equal to the given
+ * value.
*
* === Converting
*
* - #% (aliased as #modulo):: Returns +self+ modulo the given value.
* - #*:: Returns the product of +self+ and the given value.
- * - {**}[#method-i-2A-2A]:: Returns the value of +self+ raised to the power of the given value.
+ * - #**:: Returns the value of +self+ raised to the power of the given value.
* - #+:: Returns the sum of +self+ and the given value.
* - #-:: Returns the difference of +self+ and the given value.
- * - {/}[#method-i-2F]:: Returns the quotient of +self+ and the given value.
+ * - #/:: Returns the quotient of +self+ and the given value.
* - #ceil:: Returns the smallest number greater than or equal to +self+.
* - #coerce:: Returns a 2-element array containing the given value converted to a \Float
and +self+
@@ -3512,32 +3511,31 @@ rb_num2ull(VALUE val)
*
* === Comparing
*
- * - {<}[#method-i-3C]:: Returns whether +self+ is less than the given value.
- * - {<=}[#method-i-3C-3D]:: Returns whether +self+ is less than
- * or equal to the given value.
- * - {<=>}[#method-i-3C-3D-3E]:: Returns a number indicating whether +self+ is less than,
- * equal to, or greater than the given value.
- * - {==}[#method-i-3D-3D] (aliased as #===):: Returns whether +self+ is
- * equal to the given value.
- * - {>}[#method-i-3E]:: Returns whether +self+ is greater than the given value.
- * - {>=}[#method-i-3E-3D]:: Returns whether +self+ is greater than
- * or equal to the given value.
+ * - #<:: Returns whether +self+ is less than the given value.
+ * - #<=:: Returns whether +self+ is less than or equal to the given value.
+ * - #<=>:: Returns a number indicating whether +self+ is less than, equal
+ * to, or greater than the given value.
+ * - #== (aliased as #===):: Returns whether +self+ is equal to the given
+ * value.
+ * - #>:: Returns whether +self+ is greater than the given value.
+ * - #>=:: Returns whether +self+ is greater than or equal to the given
+ * value.
*
* === Converting
*
* - ::sqrt:: Returns the integer square root of the given value.
* - ::try_convert:: Returns the given value converted to an \Integer.
* - #% (aliased as #modulo):: Returns +self+ modulo the given value.
- * - {&}[#method-i-26]:: Returns the bitwise AND of +self+ and the given value.
+ * - #&:: Returns the bitwise AND of +self+ and the given value.
* - #*:: Returns the product of +self+ and the given value.
- * - {**}[#method-i-2A-2A]:: Returns the value of +self+ raised to the power of the given value.
+ * - #**:: Returns the value of +self+ raised to the power of the given value.
* - #+:: Returns the sum of +self+ and the given value.
* - #-:: Returns the difference of +self+ and the given value.
- * - {/}[#method-i-2F]:: Returns the quotient of +self+ and the given value.
+ * - #/:: Returns the quotient of +self+ and the given value.
* - #<<:: Returns the value of +self+ after a leftward bit-shift.
* - #>>:: Returns the value of +self+ after a rightward bit-shift.
* - #[]:: Returns a slice of bits from +self+.
- * - {^}[#method-i-5E]:: Returns the bitwise EXCLUSIVE OR of +self+ and the given value.
+ * - #^:: Returns the bitwise EXCLUSIVE OR of +self+ and the given value.
* - #ceil:: Returns the smallest number greater than or equal to +self+.
* - #chr:: Returns a 1-character string containing the character
* represented by the value of +self+.
@@ -3557,7 +3555,7 @@ rb_num2ull(VALUE val)
* - #to_s (aliased as #inspect):: Returns a string containing the place-value
* representation of +self+ in the given radix.
* - #truncate:: Returns +self+ truncated to the given precision.
- * - {/}[#method-i-7C]:: Returns the bitwise OR of +self+ and the given value.
+ * - #/:: Returns the bitwise OR of +self+ and the given value.
*
* === Other
*
@@ -6123,7 +6121,7 @@ int_s_try_convert(VALUE self, VALUE num)
*
* === Comparing
*
- * - {<=>}[#method-i-3C-3D-3E]:: Returns:
+ * - #<=>:: Returns:
* - -1 if +self+ is less than the given value.
* - 0 if +self+ is equal to the given value.
* - 1 if +self+ is greater than the given value.