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