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

to_s

        # Complex.to_s

(from ruby core)
---
    cmp.to_s  ->  string

---

Returns the value as a string.

    Complex(2).to_s                       #=> "2+0i"
    Complex('-8/6').to_s                  #=> "-4/3+0i"
    Complex('1/2i').to_s                  #=> "0+1/2i"
    Complex(0, Float::INFINITY).to_s      #=> "0+Infinity*i"
    Complex(Float::NAN, Float::NAN).to_s  #=> "NaN+NaN*i"



      

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.