instance method width_for

Ruby on Rails 8.0.4

Since v8.0.4 Private

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 118
      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 118 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::CodeStatistics

Type at least 2 characters to search.

↑↓ navigate · open · esc close