Class: ActionDispatch::Routing::ConsoleFormatter::Expanded

Inherits:
Base
  • Object
show all
Defined in:
actionpack/lib/action_dispatch/routing/inspector.rb

Instance Method Summary collapse

Methods inherited from Base

#header, #no_routes, #result

Constructor Details

#initialize(width: IO.console_size[1]) ⇒ Expanded

Returns a new instance of Expanded.



226
227
228
229
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 226

def initialize(width: IO.console_size[1])
  @width = width
  super()
end

Instance Method Details

#section(routes) ⇒ Object



235
236
237
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 235

def section(routes)
  @buffer << draw_expanded_section(routes)
end

#section_title(title) ⇒ Object



231
232
233
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 231

def section_title(title)
  @buffer << "\n#{"[ #{title} ]"}"
end