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

to_s

        # Integer.to_s

(from ruby core)
---
    to_s(base = 10)  ->  string

---

Returns a string containing the place-value representation of `self` in
radix `base` (in 2..36).

    12345.to_s               # => "12345"
    12345.to_s(2)            # => "11000000111001"
    12345.to_s(8)            # => "30071"
    12345.to_s(10)           # => "12345"
    12345.to_s(16)           # => "3039"
    12345.to_s(36)           # => "9ix"
    78546939656932.to_s(36)  # => "rubyrules"

Raises an exception if `base` is out of range.

Integer#inspect is an alias for Integer#to_s.



      

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.