instance method
widths
Ruby on Rails 7.1.6
Since v6.0.6 PrivateSignature
widths(routes)
No documentation comment.
Parameters
-
routesreq
Source
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 219
def widths(routes)
[routes.map { |r| r[:name].length }.max || 0,
routes.map { |r| r[:verb].length }.max || 0,
routes.map { |r| r[:path].length }.max || 0]
end
Defined in actionpack/lib/action_dispatch/routing/inspector.rb line 219
· View on GitHub
· Improve this page
· Find usages on GitHub