Class: Angus::Router::PathPattern
- Inherits:
-
Struct
- Object
- Struct
- Angus::Router::PathPattern
- Defined in:
- lib/angus/router.rb
Instance Attribute Summary collapse
-
#param_names ⇒ Object
Returns the value of attribute param_names.
-
#re_path ⇒ Object
Returns the value of attribute re_path.
Instance Method Summary collapse
-
#match(path) ⇒ MatchData?
Matches the given path against #re_path.
Instance Attribute Details
#param_names ⇒ Object
Returns the value of attribute param_names
19 20 21 |
# File 'lib/angus/router.rb', line 19 def param_names @param_names end |
#re_path ⇒ Object
Returns the value of attribute re_path
19 20 21 |
# File 'lib/angus/router.rb', line 19 def re_path @re_path end |
Instance Method Details
#match(path) ⇒ MatchData?
Matches the given path against #re_path.
25 26 27 |
# File 'lib/angus/router.rb', line 25 def match(path) re_path.match(path) end |