class Journey::Path::Pattern::MatchData
Attributes
Public Class Methods
Source
# File lib/journey/path/pattern.rb, line 138 def initialize names, offsets, match @names = names @offsets = offsets @match = match end
Public Instance Methods
Source
# File lib/journey/path/pattern.rb, line 148 def [] x idx = @offsets[x - 1] + x @match[idx] end
Source
# File lib/journey/path/pattern.rb, line 144 def captures (length - 1).times.map { |i| self[i + 1] } end
Source
# File lib/journey/path/pattern.rb, line 157 def post_match @match.post_match end