class ActionDispatch::Routing::RoutesInspector

def collect_routes(routes)

def collect_routes(routes)
  routes.collect do |route|
    RouteWrapper.new(route)
  end.reject(&:internal?).collect do |route|
    collect_engine_routes(route)
    { name: route.name,
      verb: route.verb,
      path: route.path,
      reqs: route.reqs,
      source_location: route.source_location }
  end
end