This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

magnitude

        # Numeric.magnitude

(from ruby core)
---
    magnitude()

---

Returns the absolute value of `self`.

    12.abs        #=> 12
    (-34.56).abs  #=> 34.56
    -34.56.abs    #=> 34.56

Numeric#magnitude is an alias for Numeric#abs.


(This method is an alias for Numeric#abs.)

Returns the absolute value of `self`.

    12.abs        #=> 12
    (-34.56).abs  #=> 34.56
    -34.56.abs    #=> 34.56

Numeric#magnitude is an alias for Numeric#abs.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.