Skip to Content Skip to Search

class ActionDispatch::Routing::ConsoleFormatter::Expanded

Inherits From

Public class methods

new(width: IO.console_size[1])

Permalink
Source code GitHub
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 227
def initialize(width: IO.console_size[1])
  @width = width
  super()
end

Public instance methods

section(routes)

Permalink
Source code GitHub
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 236
def section(routes)
  @buffer << draw_expanded_section(routes)
end

section_title(title)

Permalink
Source code GitHub
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 232
def section_title(title)
  @buffer << "\n#{"[ #{title} ]"}"
end

Definition files