def match(env)
      match = @matcher.match(env[Rack::PATH_INFO])
      RouteHandler.new(self, match.params, &@block) if match
    end
def match(env)
      match = @matcher.match(env[Rack::PATH_INFO])
      RouteHandler.new(self, match.params, &@block) if match
    end
Create a {Route} object.
 @param path [String, Regexp, Matcher] any path specification which can be
 consumed by {Matcher.compile}
 @param block [Proc] route handler
 Tries to match the route against a Rack environment.
 @param env [Hash] Rack environment
 @return [RouteHandler] a Rack application creating environment to run
 the route's handler block in on {RouteHandler#call}. Can be nil if
 no match found.