Method: Config#get_list

Defined in:
lib/hocon/config.rb

#get_list(path) ⇒ Object

Gets a list value (with any element type) as a ConfigList, which implements java.util.List<ConfigValue>. Throws if the path is unset or null.

Parameters:

  • path

    the path to the list value.

Raises:



709
710
711
# File 'lib/hocon/config.rb', line 709

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