lib/reek/masking_collection.rb in reek-1.2.4 vs lib/reek/masking_collection.rb in reek-1.2.5

- old
+ new

@@ -7,14 +7,14 @@ class MaskingCollection def initialize @visible_items = SortedSet.new @masked_items = SortedSet.new end - def add(item) + def found_smell(item) @visible_items.add(item) @masked_items.delete(item) if @masked_items.include?(item) end - def add_masked(item) + def found_masked_smell(item) @masked_items.add(item) unless @visible_items.include?(item) end def num_visible_items @visible_items.length end