方法
类公共方法
new(width: IO.console_size[1]) 链接
源文件: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 245 def initialize(width: IO.console_size[1]) @width = width super() end
实例公共方法
section(routes) 链接
源文件: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 254 def section(routes) @buffer << draw_expanded_section(routes) end
section_title(title) 链接
源文件: 显示 | 在 GitHub 上
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 250 def section_title(title) @buffer << "#{"[ #{title} ]"}" end