class Bindgen::Configuration::Generator
- Bindgen::Configuration::Generator
- Reference
- Object
Overview
Configuration of a generator, as given as value in generators:
Included Modules
- YAML::Serializable
Defined in:
bindgen/configuration.crConstructors
- .new(output : String, preamble : Nil | String, build : Nil | String)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Class Method Summary
-
.dummy
Builds an empty, dummy generator configuration
Instance Method Summary
-
#build : String | Nil
If set, the command (including any set arguments) will be executed using
#system
. -
#build=(build : String | Nil)
If set, the command (including any set arguments) will be executed using
#system
. -
#output : String
Output file path of this generator.
-
#output=(output : String)
Output file path of this generator.
-
#preamble : String | Nil
Custom preamble.
-
#preamble=(preamble : String | Nil)
Custom preamble.
Constructor Detail
Class Method Detail
Instance Method Detail
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.
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.
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.
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.
Custom preamble. Will be added to each output file right at the beginning, before anything else.
Custom preamble. Will be added to each output file right at the beginning, before anything else.