Module: Hocon
Defined Under Namespace
Modules: ConfigIncludeContext, ConfigIncluderFile, ConfigList, ConfigMergeable, ConfigObject, ConfigParseable, ConfigSyntax, ConfigValue, ConfigValueType, Impl, Parser
Classes: ConfigError, ConfigFactory, ConfigParseOptions, ConfigRenderOptions, ConfigResolveOptions, ConfigUtil, ConfigValueFactory
Class Method Summary
collapse
Class Method Details
.load(file) ⇒ Object
6
7
8
9
|
# File 'lib/hocon.rb', line 6
def self.load(file)
config = Hocon::ConfigFactory.parse_file(file)
return config.root.unwrapped
end
|
.parse(string) ⇒ Object
11
12
13
14
|
# File 'lib/hocon.rb', line 11
def self.parse(string)
config = Hocon::ConfigFactory.parse_string(string)
return config.root.unwrapped
end
|