instance method width_for

Ruby on Rails 8.1.2

Since v8.0.4 Private — implementation detail, not part of the public API

Available in: v8.0.4 v8.1.2

Signature

width_for(label)

No documentation comment.

Parameters

label req
Source
# File railties/lib/rails/code_statistics.rb, line 121
      def width_for(label)
        [@statistics.values.sum { |s| s.public_send(label) }.to_s.size, HEADERS[label].length].max
      end

Defined in railties/lib/rails/code_statistics.rb line 121 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::CodeStatistics

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close