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

rect

        # Complex.rect

(from ruby core)
---
    Complex.rect(real[, imag])         ->  complex
    Complex.rectangular(real[, imag])  ->  complex

---

Returns a complex object which denotes the given rectangular form.

    Complex.rectangular(1, 2)  #=> (1+2i)


(from ruby core)
---
    rect()

---

Returns a complex object which denotes the given rectangular form.

    Complex.rectangular(1, 2)  #=> (1+2i)


(This method is an alias for Complex#rectangular.)

Returns an array; [cmp.real, cmp.imag].

    Complex(1, 2).rectangular  #=> [1, 2]



      

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.