Class: Parameterised::Paths::PathMatch
- Inherits:
-
Object
- Object
- Parameterised::Paths::PathMatch
- Defined in:
- lib/parameterised/paths/path_match.rb
Overview
Class describing a path match
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, params = {}) ⇒ PathMatch
constructor
A new instance of PathMatch.
Constructor Details
#initialize(path, params = {}) ⇒ PathMatch
Returns a new instance of PathMatch.
13 14 15 16 |
# File 'lib/parameterised/paths/path_match.rb', line 13 def initialize(path, params = {}) @path = path @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/parameterised/paths/path_match.rb', line 7 def params @params end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/parameterised/paths/path_match.rb', line 7 def path @path end |