instance method widths

Ruby on Rails 4.1.16

Since v4.0.13 Last seen in v5.2.8.1 Private

Available in: v4.0.13 v4.1.16 v4.2.9 v5.2.8.1

Signature

widths(routes)

No documentation comment.

Parameters

routes req
Source
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 196
        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 196 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Routing::ConsoleFormatter

Type at least 2 characters to search.

↑↓ navigate · open · esc close