Method: Config#root

Defined in:
lib/hocon/config.rb

#rootObject

Gets the Config as a tree of ConfigObject. This is a constant-time operation (it is not proportional to the number of values in the Config).

Returns:

  • the root object in the configuration

Raises:



168
169
170
# File 'lib/hocon/config.rb', line 168

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