Method: Config#origin

Defined in:
lib/hocon/config.rb

#originObject

Gets the origin of the Config, which may be a file, or a file with a line number, or just a descriptive phrase.

Returns:

  • the origin of the Config for use in error messages

Raises:



178
179
180
# File 'lib/hocon/config.rb', line 178

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