class Proximity::Router

Public Instance Methods

inspect() click to toggle source
# File lib/proximity/router.rb, line 13
def inspect
  "#<#{self.class.name}>"
end
match(env) click to toggle source
# File lib/proximity/router.rb, line 8
def match(env)
  matches = router.send :find_routes, env
  Match.new(matches).presence
end
routes() click to toggle source
# File lib/proximity/router.rb, line 4
def routes
  @routes ||= Routes.new
end

Private Instance Methods

router() click to toggle source
# File lib/proximity/router.rb, line 19
def router
  @router ||= Proximity.routerClass.new(routes, {})
end