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

to_a

        # Range.to_a

(from ruby core)
---
    to_a -> array

---

Returns an array containing the elements in `self`, if a finite
collection; raises an exception otherwise.

    (1..4).to_a     # => [1, 2, 3, 4]
    (1...4).to_a    # => [1, 2, 3]
    ('a'..'d').to_a # => ["a", "b", "c", "d"]

Range#entries is an alias for Range#to_a.



      

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.