class Bindgen::Configuration::Generator

Overview

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

Included Modules

Defined in:

bindgen/configuration.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(output : String, preamble : Nil | String, build : Nil | String) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Class Method Detail

def self.dummy #

Builds an empty, dummy generator configuration


[View source]

Instance Method Detail

def 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.


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


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


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


[View source]
def preamble : String | Nil #

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


[View source]
def preamble=(preamble : String | Nil) #

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


[View source]