Class: Utopia::Path::Matcher::MatchData
- Inherits:
-
Object
- Object
- Utopia::Path::Matcher::MatchData
- Defined in:
- lib/utopia/path/matcher.rb
Instance Attribute Summary collapse
-
#named_parts ⇒ Object
readonly
Returns the value of attribute named_parts.
-
#post_match ⇒ Object
readonly
Returns the value of attribute post_match.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(named_parts, post_match) ⇒ MatchData
constructor
A new instance of MatchData.
- #names ⇒ Object
Constructor Details
Instance Attribute Details
#named_parts ⇒ Object (readonly)
Returns the value of attribute named_parts.
32 33 34 |
# File 'lib/utopia/path/matcher.rb', line 32 def named_parts @named_parts end |
#post_match ⇒ Object (readonly)
Returns the value of attribute post_match.
33 34 35 |
# File 'lib/utopia/path/matcher.rb', line 33 def post_match @post_match end |
Instance Method Details
#[](key) ⇒ Object
35 36 37 |
# File 'lib/utopia/path/matcher.rb', line 35 def [] key @named_parts[key] end |
#names ⇒ Object
39 40 41 |
# File 'lib/utopia/path/matcher.rb', line 39 def names @named_parts.keys end |