lib/date_holidays/reader/holiday.rb in date_holidays-reader-1.0.3 vs lib/date_holidays/reader/holiday.rb in date_holidays-reader-1.0.4

- old
+ new

@@ -45,11 +45,11 @@ def substitute? @substitute end - # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity # I could cut down on those cops by iterating over instance variable and # using meta programming. However, that would obscure intent. def ==(other) other.is_a?(self.class) && other.date == date && @@ -58,10 +58,10 @@ other.name == name && other.type == type && other.substitute? == substitute? && other.note == note end - # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity private def parse_time(time) # Example time string: "2018-01-01T05:00:00.000Z"