mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-21 00:50:03 +01:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user