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

arg

        # Complex.arg

(from ruby core)
---
    cmp.arg    ->  float
    cmp.angle  ->  float
    cmp.phase  ->  float

---

Returns the angle part of its polar form.

    Complex.polar(3, Math::PI/2).arg  #=> 1.5707963267948966



      

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.