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

digits

        # Integer.digits

(from ruby core)
---
    digits(base = 10) -> array_of_integers

---

Returns an array of integers representing the `base`-radix digits of
`self`; the first element of the array represents the least significant
digit:

    12345.digits      # => [5, 4, 3, 2, 1]
    12345.digits(7)   # => [4, 6, 6, 0, 5]
    12345.digits(100) # => [45, 23, 1]

Raises an exception if `self` is negative or `base` is less than 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.