--- !ruby/object:RDoc::RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Returns a two-element array containing the beginning and ending offsets of the <em>n</em>th match. <em>n</em> can be a string or symbol to reference a named capture.
- !ruby/struct:RDoc::Markup::Flow::VERB 
  :body: "   m = /(.)(.)(\\d+)(\\d)/.match(&quot;THX1138.&quot;)\n   m.offset(0)      #=&gt; [1, 7]\n   m.offset(4)      #=&gt; [6, 7]\n\n   m = /(?&lt;foo&gt;.)(.)(?&lt;bar&gt;.)/.match(&quot;hoge&quot;)\n   p m.offset(:foo) #=&gt; [0, 1]\n   p m.offset(:bar) #=&gt; [2, 3]\n"
full_name: MatchData#offset
is_singleton: false
name: offset
params: |
  mtch.offset(n)   => array

visibility: public
