class

Bindgen::Generator::Crystal

Inherits Bindgen::Graph::Visitor < Bindgen::Generator::Base < Reference < Object

Generator for Crystal wrapper and binding code.

Constants

PLATFORM = Graph::Platform::Crystal

Constructors

new(*args)
Source

Instance methods

code_block(*header, &)
Source
visit_children(container : Graph::Container)

Visits all children of container. After each child, writes the deferred classes inside container which became writable.

Source
visit_class(klass)

Visits a Graph::Class. The default implementation calls #visit_children to visit all child nodes.

Source
visit_constant(constant)

Visits a Graph::Constant.

Source
visit_enum(enumeration)

Visits a Graph::Enum.

Source
visit_library(library)

Visits a Graph::Library. The default implementation calls #visit_children to visit all child nodes.

Source
visit_method(method)

Visits a Graph::Method.

Source
visit_namespace(ns)

Visits a Graph::Namespace. The default implementation calls #visit_children to visit all child nodes.

Source
visit_platform_specific(specific)

Visits a Graph::PlatformSpecific.

Source
write(node : Graph::Container)

Writes the node to the output file(s). Make sure to call #begin_section before writing any data.

Source