class Bindgen::CallBuilder::CrystalWrapper::ConstructorBody

Overview

Body of an #initialize. The constructed object remembers self, see BindgenHelper.set_crystal_object, unless bind is false: for the unwrap: initializer wrapping an existing object.

Defined in:

bindgen/call_builder/crystal_wrapper.cr

Constructors

Instance Method Summary

Instance methods inherited from class Bindgen::CallBuilder::CrystalWrapper::Body

encapsulate(call, code) encapsulate, encapsulate_into_variable(call, code) encapsulate_into_variable, super_forwarder=(super_forwarder : Bool) super_forwarder=, super_forwarder? : Bool super_forwarder?, to_code(call : Call, platform : Graph::Platform) : String to_code

Constructor methods inherited from class Bindgen::CallBuilder::CrystalWrapper::Body

new(db : TypeDatabase, target : Call) new

Instance methods inherited from class Bindgen::Call::HookableBody

add_post_hook(hook : Body) : Nil add_post_hook, post_hook : Body | Nil post_hook, post_hook=(post_hook : Body | Nil) post_hook=, post_hook?(type : T.class) : Bool forall T post_hook?, pre_hook : Body | Nil pre_hook, pre_hook=(pre_hook : Body | Nil) pre_hook=

Instance methods inherited from class Bindgen::Call::Body

to_code(call : Call, platform : Graph::Platform) : String to_code

Constructor Detail

def self.new(db : TypeDatabase, target : Call, bind : Bool = true) #

[View source]

Instance Method Detail

def encapsulate(call, code) #
Description copied from class Bindgen::CallBuilder::CrystalWrapper::Body

Generates the call itself.


[View source]
def encapsulate_into_variable(call, code) #

[View source]