Sha256: 86d08c73c36eddcc47cda9db9855d310f063b1796738849d256d5b03f5ee562a
Contents?: true
Size: 510 Bytes
Versions: 50
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true module CMSScanner module Finders # Findings container class Findings < Array # Override to include the confirmed_by logic # # @param [ Finding ] finding def <<(finding) return self unless finding each do |found| next unless found == finding found.confirmed_by << finding found.confidence += finding.confidence return self end super(finding) end end end end
Version data entries
50 entries across 50 versions & 3 rubygems