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

to_f

        # Complex.to_f

(from ruby core)
---
    cmp.to_f  ->  float

---

Returns the value as a float if possible (the imaginary part should be
exactly zero).

    Complex(1, 0).to_f    #=> 1.0
    Complex(1, 0.0).to_f  # RangeError
    Complex(1, 2).to_f    # RangeError



      

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.