Merge branch 'master' into convert-to-engine-rspec

This commit is contained in:
Dzmitry Plashchynski
2022-05-29 20:32:06 +03:00
committed by GitHub
7 changed files with 94 additions and 43 deletions

View File

@@ -78,7 +78,8 @@ module Crono
end
def time_atts
{ hour: @at_hour, min: @at_min }.compact
atts = { hour: @at_hour, min: @at_min }
atts.respond_to?(:compact) ? atts.compact : atts.select { |_, value| !value.nil? }
end
end
end