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

pre_match

        # MatchData.pre_match

(from ruby core)
---
    mtch.pre_match   -> str

---

Returns the portion of the original string before the current match.
Equivalent to the special variable `$``.

    m = /(.)(.)(\d+)(\d)/.match("THX1138.")
    m.pre_match   #=> "T"



      

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.