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

gcd

        # Integer.gcd

(from ruby core)
---
    int.gcd(other_int)  ->  integer

---

Returns the greatest common divisor of the two integers. The result is
always positive. 0.gcd(x) and x.gcd(0) return x.abs.

    36.gcd(60)                  #=> 12
    2.gcd(2)                    #=> 2
    3.gcd(-7)                   #=> 1
    ((1<<31)-1).gcd((1<<61)-1)  #=> 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.