Method: Config#at_key

Defined in:
lib/hocon/config.rb

#at_key(key) ⇒ Object

Places the config inside a Config at the given key. See also atPath(). Note that a key is NOT a path expression (see ConfigUtil#joinPath and ConfigUtil#splitPath).

Parameters:

  • key

    key to store this config at.

Raises:



987
988
989
# File 'lib/hocon/config.rb', line 987

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