Method: Config#get_duration_list

Defined in:
lib/hocon/config.rb

#get_duration_list(path, unit) ⇒ Object

Gets a list, converting each value in the list to a duration, using the same rules as #getDuration(String, TimeUnit).

Parameters:

  • path

    a path expression

  • unit

    time units of the returned values

Returns:

  • list of durations, in the requested units

Raises:

Since:

  • 1.2.0



929
930
931
# File 'lib/hocon/config.rb', line 929

def get_duration_list(path, unit)
  raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `Config` must implement `get_duration_list` (#{self.class})"
end