Object
Collects and sorts smells warnings.
# File lib/reek/core/warning_collector.rb, line 10 def initialize @warnings = Set.new end
# File lib/reek/core/warning_collector.rb, line 14 def found_smell(warning) @warnings.add(warning) end
# File lib/reek/core/warning_collector.rb, line 18 def warnings @warnings.to_a.sort do |first,second| first_sig = [first.context, first.message, first.smell_class] second_sig = [second.context, second.message, second.smell_class] first_sig <=> second_sig end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.