Method: Config#get_string_list

Defined in:
lib/hocon/config.rb

#get_string_list(path) ⇒ Object

Gets a list value with string elements. Throws if the path is unset or null or not a list or contains values not convertible to string.

Parameters:

  • path

    the path to the list value.

Returns:

  • the list at the path

Raises:



811
812
813
# File 'lib/hocon/config.rb', line 811

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