Class: Jets::Controller::Middleware::Local::RouteMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/controller/middleware/local/route_matcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ RouteMatcher

Returns a new instance of RouteMatcher.



3
4
5
# File 'lib/jets/controller/middleware/local/route_matcher.rb', line 3

def initialize(env)
  @env = env
end

Instance Method Details

#find_routeObject



7
8
9
# File 'lib/jets/controller/middleware/local/route_matcher.rb', line 7

def find_route
  Jets::Router::Finder.new(path, method).run
end