class Bindgen::CallBuilder::CrystalFromCpp

Overview

Builder for calls made from C++ to a Crystal CrystalProc.

Defined in:

bindgen/call_builder/crystal_from_cpp.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(db : TypeDatabase) #

[View source]

Instance Method Detail

def build(method : Parser::Method, receiver = "self", do_block = false) : Call #

Calls the method, using the proc_name to call-through to Crystal.

If do_block is true, the generated Proc expression will use do ... end instead of { ... }. This allows embedding the code body inside a string conversion template, without the code block being interpreted as an environment variable (see also Template::Basic).


[View source]