Parent

Journey::Path::Pattern::MatchData

Attributes

names[R]

Public Class Methods

new(names, offsets, match) click to toggle source
     # File lib/journey/path/pattern.rb, line 138
138:         def initialize names, offsets, match
139:           @names   = names
140:           @offsets = offsets
141:           @match   = match
142:         end

Public Instance Methods

[](x) click to toggle source
     # File lib/journey/path/pattern.rb, line 148
148:         def [] x
149:           idx = @offsets[x - 1] + x
150:           @match[idx]
151:         end
captures() click to toggle source
     # File lib/journey/path/pattern.rb, line 144
144:         def captures
145:           (length - 1).times.map { |i| self[i + 1] }
146:         end
length() click to toggle source
     # File lib/journey/path/pattern.rb, line 153
153:         def length
154:           @offsets.length
155:         end
post_match() click to toggle source
     # File lib/journey/path/pattern.rb, line 157
157:         def post_match
158:           @match.post_match
159:         end
to_s() click to toggle source
     # File lib/journey/path/pattern.rb, line 161
161:         def to_s
162:           @match.to_s
163:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.