class ActionDispatch::Routing::RoutesInspector

def collect_engine_routes(route)

Experimental RBS support (using type sampling data from the type_fusion project).

def collect_engine_routes: (ActionDispatch::Routing::RouteWrapper route) -> nil

This signature was generated using 3 samples from 1 application.

def collect_engine_routes(route)
  name = route.endpoint
  return unless route.engine?
  return if @engines[name]
  routes = route.rack_app.routes
  if routes.is_a?(ActionDispatch::Routing::RouteSet)
    @engines[name] = collect_routes(routes.routes)
  end
end