Module: RubyCritic::SmellsStatusSetter

Defined in:
lib/rubycritic/smells_status_setter.rb

Class Method Summary collapse

Class Method Details

.set(smells_before, smells_now) ⇒ Object


4
5
6
7
8
9
# File 'lib/rubycritic/smells_status_setter.rb', line 4

def self.set(smells_before, smells_now)
  old_smells = smells_now & smells_before
  set_status(old_smells, :old)
  new_smells = smells_now - smells_before
  set_status(new_smells, :new)
end