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

to_s

        # Range.to_s

(from ruby core)
---
    to_s -> string

---

Returns a string representation of `self`, including `begin.to_s` and
`end.to_s`:

    (1..4).to_s  # => "1..4"
    (1...4).to_s # => "1...4"
    (1..).to_s   # => "1.."
    (..4).to_s   # => "..4"

Note that returns from #to_s and #inspect may differ:

    ('a'..'d').to_s    # => "a..d"
    ('a'..'d').inspect # => "\"a\"..\"d\""

Related: Range#inspect.



      

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.