class ActionDispatch::Journey::Path::Pattern::MatchData

:nodoc:

def [](x)

def [](x)
  idx = @offsets[x - 1] + x
  @match[idx]
end

def captures

def captures
  Array.new(length - 1) { |i| self[i + 1] }
end

def initialize(names, offsets, match)

def initialize(names, offsets, match)
  @names   = names
  @offsets = offsets
  @match   = match
end

def length

def length
  @offsets.length
end

def named_captures

def named_captures
  @names.zip(captures).to_h
end

def post_match

def post_match
  @match.post_match
end

def to_s

def to_s
  @match.to_s
end