class

HCL::Parser

Inherits Reference / Object

Constructors

new(source : String | IO, offset : Int32 = 0, io : IO | Nil = nil, path : String | Nil = nil)

Initialize parser for a given HCL source

offset: optionally be specified to start parsing at a particular offset io: optionally be specified to tracing the parsing path: specify path for parse exceptions

Source

Class methods

parse!(*args, **kwargs)

Parse and return an HCL::Document for a given HCL source

offset: optionally be specified to start parsing at a particular offset io: optionally be specified to tracing the parsing path: specify path for parse exceptions

Raises HCL::ParseException for any parsing errors

Source

Instance methods

document
Source
parse!

Parse and return an HCL::Document

Raises HCL::ParseException for any parsing errors

Source
source
Source
source_path
Source