class Bindgen::CallBuilder::CrystalFromCpp
- Bindgen::CallBuilder::CrystalFromCpp
- Reference
- Object
Overview
Builder for calls made from C++ to a Crystal CrystalProc
.
Defined in:
bindgen/call_builder/crystal_from_cpp.crConstructors
Instance Method Summary
-
#build(method : Parser::Method, receiver = "self", do_block = false) : Call
Calls the method, using the proc_name to call-through to Crystal.
Constructor Detail
Instance Method Detail
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
).