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

to_s

        # Rational.to_s

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

---

Returns the value as a string.

    Rational(2).to_s      #=> "2/1"
    Rational(-8, 6).to_s  #=> "-4/3"
    Rational('1/2').to_s  #=> "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.