Class: CMSScanner::Finders::Findings
- Inherits:
-
Array
- Object
- Array
- CMSScanner::Finders::Findings
- Defined in:
- lib/cms_scanner/finders/findings.rb
Overview
Findings container
Instance Method Summary collapse
-
#<<(finding) ⇒ Object
Override to include the confirmed_by logic.
Instance Method Details
#<<(finding) ⇒ Object
Override to include the confirmed_by logic
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/cms_scanner/finders/findings.rb', line 10 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 |