class ActionDispatch::Routing::ConsoleFormatter::Unused

def header(routes)

def header(routes)
  @buffer << <<~MSG
    Found #{routes.count} unused #{"route".pluralize(routes.count)}:
  MSG
  super
end

def no_routes(routes, filter)

def no_routes(routes, filter)
  @buffer <<
    if filter.none?
      "No unused routes found."
    elsif filter.key?(:controller)
      "No unused routes found for this controller."
    elsif filter.key?(:grep)
      "No unused routes found for this grep pattern."
    end
end