lib/meibo/manifest/processing_mode.rb in meibo-0.16.0 vs lib/meibo/manifest/processing_mode.rb in meibo-0.17.0

- old
+ new

@@ -9,24 +9,25 @@ @mode = mode freeze end def absent? - @mode == 'absent' + @mode == "absent" end def bulk? - @mode == 'bulk' + @mode == "bulk" end def delta? - @mode == 'delta' + @mode == "delta" end def ==(other) - if other.is_a?(ProcessingMode) + case other + when ProcessingMode @mode == other.mode - elsif other.is_a?(String) + when String to_s == other else false end end