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

to_f

        # Rational.to_f

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

---

Returns the value as a Float.

    Rational(2).to_f      #=> 2.0
    Rational(9, 4).to_f   #=> 2.25
    Rational(-3, 4).to_f  #=> -0.75
    Rational(20, 3).to_f  #=> 6.666666666666667



      

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.