class ActionDispatch::Routing::ConsoleFormatter::Expanded

def route_header(index:)

def route_header(index:)
  console_width = IO.console_size.second
  header_prefix = "--[ Route #{index} ]"
  dash_remainder = [console_width - header_prefix.size, 0].max
  "#{header_prefix}#{'-' * dash_remainder}"
end