class method self.new

Ruby on Rails 8.0.5.1

Since v8.0.5.1

Available in: v8.0.5.1 v8.1.3.1 edge

Signature

self.new(*pairs)

No documentation comment.

Parameters

pairs rest
Source
# File railties/lib/rails/code_statistics.rb, line 60
    def initialize(*pairs)
      @pairs      = pairs
      @statistics = calculate_statistics
      @total      = calculate_total if pairs.length > 1
    end

Defined in railties/lib/rails/code_statistics.rb line 60 · 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