diff options
author | Nithin Bekal <[email protected]> | 2024-10-01 23:04:17 -0400 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-02 17:32:35 +0900 |
commit | fe8d7ca8538d613e454e185f1f28c9958e825241 (patch) | |
tree | 885489a7e515512b4b01859e3833b4a7f0c3f456 | |
parent | b7a33aef9eeb93fcad997ddaa0e8991b9373a32b (diff) |
[DOC] Alias Float#magnitude to abs
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11760
-rw-r--r-- | numeric.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numeric.rb b/numeric.rb index 4dc406fd23..852385962e 100644 --- a/numeric.rb +++ b/numeric.rb @@ -328,10 +328,7 @@ class Float Primitive.cexpr! 'rb_float_abs(self)' end - def magnitude - Primitive.attr! :leaf - Primitive.cexpr! 'rb_float_abs(self)' - end + alias magnitude abs # call-seq: # -float -> float |