Bindgen::Generator::Base
Base class for a Generator. It's used in conjunction of one or several processors to write generated data out to disk.
Constants
Single indention-depth prefix
Name of the section in a single-file setup.
Constructors
Instance methods
Increments the indention depth by one, yields, and decrements the depth afterwards again.
Prints text into the current output, adhering to the current indention depth. Multi-line text is supported, too.
Writes the node to the output file(s). Make sure to call
#begin_section before writing any data.
Publicly accessed method. Writes node, while taking into account that
the output may be split among multiple files. If io is not nil,
it'll be used as output. This is useful for recursive generator
invocations.
depth is only respected if io is not nil, in which case it'll
override @depth.