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

gcdlcm

        # Integer.gcdlcm

(from ruby core)
---
    int.gcdlcm(other_int)  ->  array

---

Returns an array with the greatest common divisor and the least common
multiple of the two integers, [gcd, lcm].

    36.gcdlcm(60)                  #=> [12, 180]
    2.gcdlcm(2)                    #=> [2, 2]
    3.gcdlcm(-7)                   #=> [1, 21]
    ((1<<31)-1).gcdlcm((1<<61)-1)  #=> [1, 4951760154835678088235319297]



      

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.