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

offset

        # MatchData.offset

(from ruby core)
---
    mtch.offset(n)   -> array

---

Returns a two-element array containing the beginning and ending offsets
of the *n*th match. *n* can be a string or symbol to reference a named
capture.

    m = /(.)(.)(\d+)(\d)/.match("THX1138.")
    m.offset(0)      #=> [1, 7]
    m.offset(4)      #=> [6, 7]

    m = /(?<foo>.)(.)(?<bar>.)/.match("hoge")
    p m.offset(:foo) #=> [0, 1]
    p m.offset(:bar) #=> [2, 3]



      

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.