Module: Hocon
- Defined in:
- lib/hocon.rb
Defined Under Namespace
Modules: ConfigObject, ConfigSyntax, ConfigValueType, Impl Classes: ConfigError, ConfigFactory, ConfigParseOptions, ConfigRenderOptions, ConfigValueFactory
Class Method Summary collapse
Class Method Details
.load(file) ⇒ Object
4 5 6 7 |
# File 'lib/hocon.rb', line 4 def self.load(file) config = Hocon::ConfigFactory.parse_file(file) return config.root.unwrapped end |
.parse(string) ⇒ Object
9 10 11 12 |
# File 'lib/hocon.rb', line 9 def self.parse(string) config = Hocon::ConfigFactory.parse_string(string) return config.root.unwrapped end |