Method: Config#get_long

Defined in:
lib/hocon/config.rb

#get_long(path) ⇒ Object

Gets the long integer at the given path. If the value at the path has a fractional (floating point) component, it will be discarded and only the integer part will be returned (it works like a “narrowing primitive conversion” in the Java language specification).

Parameters:

  • path

    path expression

Returns:

  • the 64-bit long value at the requested path

Raises:



490
491
492
# File 'lib/hocon/config.rb', line 490

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