method

add

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Results
add(path, score) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/template/error.rb, line 80
        def add(path, score)
          if should_record?(score)
            @results << Result.new(path, score)
            @results.sort_by!(&:score)
            @results.pop if @results.size > @size
          end
        end
Register or log in to add new notes.