Class: ActionDispatch::Routing::ConsoleFormatter::Expanded
- Inherits:
-
Base
- Object
- Base
- ActionDispatch::Routing::ConsoleFormatter::Expanded
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: ) ⇒ Expanded
Returns a new instance of Expanded.
273
274
275
276
|
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 273
def initialize(width: IO.console_size[1])
@width = width
super()
end
|
Instance Method Details
286
287
288
|
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 286
def (routes)
@buffer << ""
end
|
#section(routes) ⇒ Object
282
283
284
|
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 282
def section(routes)
@buffer << draw_expanded_section(routes)
end
|
#section_title(title) ⇒ Object
278
279
280
|
# File 'actionpack/lib/action_dispatch/routing/inspector.rb', line 278
def section_title(title)
@buffer << "#{"[ #{title} ]"}"
end
|