Parent

Class/Module Index [+]

Quicksearch

Reek::Core::WarningCollector

Collects and sorts smells warnings.

Public Class Methods

new() click to toggle source
# File lib/reek/core/warning_collector.rb, line 10
def initialize
  @warnings = Set.new
end

Public Instance Methods

found_smell(warning) click to toggle source
# File lib/reek/core/warning_collector.rb, line 14
def found_smell(warning)
  @warnings.add(warning)
end
warnings() click to toggle source
# 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.