lib/doing/array_chronify.rb in doing-2.1.21 vs lib/doing/array_chronify.rb in doing-2.1.22

- old
+ new

@@ -4,12 +4,13 @@ # Chronify array helpers class ::Array ## ## Format [d, h, m] as string ## - ## @param time [Array] Array of [days, hours, - ## minutes] - ## @param format [Symbol] The format, :dhm, :hm, :m, :clock, :natural + ## @accept [Array] Array of [days, hours, minutes] + ## + ## @param format [Symbol] The format, :dhm, :hm, + ## :m, :clock, :natural ## @return [String] formatted string ## def time_string(format: :dhm) raise InvalidArgument, 'Invalid array, must be [d,h,m]' unless count == 3