module Bindgen::ConfigReader

Overview

Classes to read YAML configuration data.

For documentation on

These should be mirrored in the README.md file.

Defined in:

bindgen/config_reader.cr
bindgen/config_reader/condition_evaluator.cr
bindgen/config_reader/condition_state.cr
bindgen/config_reader/loader.cr
bindgen/config_reader/parser.cr

Class Method Summary

Class Method Detail

def self.from_file(klass : Class, path : String, variables : VariableHash | Nil = nil) #

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


[View source]
def self.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.


[View source]