Class: ActionDispatch::Routing::ConsoleFormatter::Expanded
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base
|
|
Instance Chain:
self,
Base
|
|
Inherits: |
ActionDispatch::Routing::ConsoleFormatter::Base
|
Defined in: | actionpack/lib/action_dispatch/routing/inspector.rb |
Class Method Summary
Instance Method Summary
Base
- Inherited
Constructor Details
.new(width: ) ⇒ Expanded
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 227
def initialize(width: IO.console_size[1]) @width = width super() end
Instance Method Details
#section(routes)
[ GitHub ]# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 236
def section(routes) @buffer << (routes) end
#section_title(title)
[ GitHub ]# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 232
def section_title(title) @buffer << "\n#{"[ #{title} ]"}" end