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

numerator

        # Rational.numerator

(from ruby core)
---
    rat.numerator  ->  integer

---

Returns the numerator.

    Rational(7).numerator        #=> 7
    Rational(7, 1).numerator     #=> 7
    Rational(9, -4).numerator    #=> -9
    Rational(-2, -10).numerator  #=> 1



      

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.