class

Bindgen::Configuration::Generator

Inherits YAML::Serializable < Reference < Object

Configuration of a generator, as given as value in generators:

Constructors

new(output : String, preamble : Nil | String, build : Nil | String)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Class methods

dummy

Builds an empty, dummy generator configuration

Source

Instance methods

build

If set, the command (including any set arguments) will be executed using #system. Use this to build the output of a generator. If the ran command fails (That means its exit code is not zero), then bindgen fails immediately, passing on the same exit code.

Source
build=(build : String | Nil)

If set, the command (including any set arguments) will be executed using #system. Use this to build the output of a generator. If the ran command fails (That means its exit code is not zero), then bindgen fails immediately, passing on the same exit code.

Source
output

Output file path of this generator. Can be a template string: If a percent-sign is found in it, the generator will split the output data after each logical unit. A logical unit is generator-specific, though it's usually something like a class.

Source
output=(output : String)

Output file path of this generator. Can be a template string: If a percent-sign is found in it, the generator will split the output data after each logical unit. A logical unit is generator-specific, though it's usually something like a class.

Source
preamble

Custom preamble. Will be added to each output file right at the beginning, before anything else.

Source
preamble=(preamble : String | Nil)

Custom preamble. Will be added to each output file right at the beginning, before anything else.

Source