module

Bindgen::ConfigReader

Classes to read YAML configuration data.

For documentation on

  • the YAML features, see Parser
  • default condition variables, see Variables

These should be mirrored in the README.md file.

Class methods

from_file(klass : Class, path : String, variables : VariableHash | Nil = nil)

Same as .from_yaml, but reads the file at path directly.

Source
from_yaml(klass : Class, content : String | IO, path : String, variables : VariableHash | Nil = nil)

Constructs a klass instance using the YAML data at content. path points to the processed YAML file, and is used to find external dependency files. Additional condition variables can be passed if required.

See also .from_file.

Source

Nested types