Module: Soltius::Utils::LibHcl
Overview
HCL Parser using the official Hashicorp HCL implementation in Go
Constant Summary collapse
- PATH =
File.('../../../ext/libhcl.so', __dir__)
- EXISTS =
File.exists?(PATH)
Instance Method Summary collapse
-
#file_to_json ⇒ Object
Reads a HCL file and parses it into JSON.
-
#to_json ⇒ Object
Parses a HCL String into JSON.
Instance Method Details
#file_to_json ⇒ Object
Reads a HCL file and parses it into JSON
28 |
# File 'lib/soltius/utils/hcl.rb', line 28 attach_function :file_to_json, [:string], :string |
#to_json ⇒ Object
Parses a HCL String into JSON
21 |
# File 'lib/soltius/utils/hcl.rb', line 21 attach_function :to_json, [:string], :string |