module Hocon

Public Class Methods

load(file) click to toggle source
# File lib/hocon.rb, line 5
def self.load(file)
  config = Hocon::ConfigFactory.parse_file(file)
  return config.root.unwrapped
end
parse(string) click to toggle source
# File lib/hocon.rb, line 10
def self.parse(string)
  config = Hocon::ConfigFactory.parse_string(string)
  return config.root.unwrapped
end