Class: ActionDispatch::Routing::ConsoleFormatter::Expanded
- Inherits:
-
Base
- Object
- Base
- ActionDispatch::Routing::ConsoleFormatter::Expanded
show all
- Defined in:
- lib/action_dispatch/routing/inspector.rb
Instance Method Summary
collapse
Methods inherited from Base
#header, #no_routes, #result
Constructor Details
#initialize(width: ) ⇒ Expanded
Returns a new instance of Expanded.
245
246
247
248
|
# File 'lib/action_dispatch/routing/inspector.rb', line 245
def initialize(width: IO.console_size[1])
@width = width
super()
end
|
Instance Method Details
258
259
260
|
# File 'lib/action_dispatch/routing/inspector.rb', line 258
def (routes)
@buffer << ""
end
|
#section(routes) ⇒ Object
254
255
256
|
# File 'lib/action_dispatch/routing/inspector.rb', line 254
def section(routes)
@buffer << draw_expanded_section(routes)
end
|
#section_title(title) ⇒ Object
250
251
252
|
# File 'lib/action_dispatch/routing/inspector.rb', line 250
def section_title(title)
@buffer << "#{"[ #{title} ]"}"
end
|