mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-24 01:38:37 +02:00
@@ -78,7 +78,8 @@ module Crono
|
|||||||
end
|
end
|
||||||
|
|
||||||
def time_atts
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user