Class: Silicon::Routing::Match
- Inherits:
-
Object
- Object
- Silicon::Routing::Match
- Defined in:
- lib/silicon/routing/match.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#route ⇒ Object
readonly
Returns the value of attribute route.
Instance Method Summary collapse
-
#initialize(route, params) ⇒ Match
constructor
A new instance of Match.
Constructor Details
#initialize(route, params) ⇒ Match
Returns a new instance of Match.
6 7 8 9 |
# File 'lib/silicon/routing/match.rb', line 6 def initialize(route, params) @route = route @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/silicon/routing/match.rb', line 4 def params @params end |
#route ⇒ Object (readonly)
Returns the value of attribute route.
4 5 6 |
# File 'lib/silicon/routing/match.rb', line 4 def route @route end |