From fe8d7ca8538d613e454e185f1f28c9958e825241 Mon Sep 17 00:00:00 2001 From: Nithin Bekal Date: Tue, 1 Oct 2024 23:04:17 -0400 Subject: [PATCH] [DOC] Alias Float#magnitude to abs --- numeric.rb | 5 +---- 1 file changed, 1 insertion(+), 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