5 attr_reader :type, :name, :count
7 def initialize(type, name, count = 1)
14 other.type.to_s == self.type.to_s &&
15 other.name == self.name &&
16 other.count == self.count
20 # Sort by type, then descending count, then name
21 if self.type != other.type
22 self.type.to_s <=> other.type.to_s
23 elsif self.count != other.count
24 -(self.count <=> other.count)
26 self.name.to_s <=> other.name.to_s
30 # will return an array of detected gestalts from a source_file_list
31 def self.find_gestalts(source_file_list)
32 GestaltEngine.new.process(source_file_list).gestalts