Method: Config#get_bytes_list

Defined in:
lib/hocon/config.rb

#get_bytes_list(path) ⇒ Object

Gets a list value with elements representing a size in bytes. Throws if the path is unset or null or not a list or contains values not convertible to memory sizes.

Parameters:

  • path

    the path to the list value.

Returns:

  • the list at the path

Raises:



879
880
881
# File 'lib/hocon/config.rb', line 879

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