Bindgen::Call::HookableBody
Inherits Bindgen::Call::Body < Reference < Object
A body allowing to add additional code before and after the actual code
body. This is useful to allow later processors to refine existing calls
with additional logic. An example of this is the VirtualOverride
processor, which uses this to augment #initialize methods setting the
jump-table.
Note: The pre_hook and post_hook must be manually called in your
#to_code implementation.
See CallBuilder::CrystalBinding::InvokeBody for an example of this.
Instance methods
Code snippet ran after the body code itself. The result value is stored
in a variable called result.
Code snippet ran after the body code itself. The result value is stored
in a variable called result.
Returns if a post-hook of type type is set, alone or in a sequence.
Code snippet ran before the body code itself. Access to the arguments of the body can be accessed directly by their name.
Code snippet ran before the body code itself. Access to the arguments of the body can be accessed directly by their name.