Class: Snoot::DuplicationCluster

Inherits:
Data
  • Object
show all
Defined in:
lib/snoot/findings.rb

Overview

A structural-duplication cluster reported by Flay: a signature shared across two or more Locations. Cluster size (locations.size) is the ranking key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationsObject (readonly)

Returns the value of attribute locations

Returns:

  • (Object)

    the current value of locations



20
21
22
# File 'lib/snoot/findings.rb', line 20

def locations
  @locations
end

#signatureObject (readonly)

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



20
21
22
# File 'lib/snoot/findings.rb', line 20

def signature
  @signature
end

Instance Method Details

#sizeObject



21
# File 'lib/snoot/findings.rb', line 21

def size = locations.size