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

abs

        # Integer.abs

(from ruby core)
---
    int.abs        ->  integer
    int.magnitude  ->  integer

---

Returns the absolute value of `int`.

    (-12345).abs   #=> 12345
    -12345.abs     #=> 12345
    12345.abs      #=> 12345

Integer#magnitude is an alias for Integer#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.