Class: Proximity::Router
- Inherits:
-
Object
- Object
- Proximity::Router
- Defined in:
- lib/proximity/router.rb
Defined Under Namespace
Classes: Match
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
13 14 15 |
# File 'lib/proximity/router.rb', line 13 def inspect "#<#{self.class.name}>" end |
#match(env) ⇒ Object
8 9 10 11 |
# File 'lib/proximity/router.rb', line 8 def match(env) matches = router.send :find_routes, env Match.new(matches).presence end |
#routes ⇒ Object
4 5 6 |
# File 'lib/proximity/router.rb', line 4 def routes @routes ||= Routes.new end |