class Utopia::Path::Matcher::MatchData
The result of matching against a {Path}.
Attributes
named_parts[R]
Matched components by name.
post_match[R]
Any remaining part past the end of the explicitly matched components.
Public Class Methods
new(named_parts, post_match)
click to toggle source
# File lib/utopia/path/matcher.rb, line 35 def initialize(named_parts, post_match) @named_parts = named_parts @post_match = Path[post_match] end
Public Instance Methods
[](key)
click to toggle source
# File lib/utopia/path/matcher.rb, line 46 def [] key @named_parts[key] end
names()
click to toggle source
# File lib/utopia/path/matcher.rb, line 50 def names @named_parts.keys end