class

Bindgen::Processor::Inheritance::ToBody

Inherits Bindgen::Call::Body < Reference < Object

Crystal body of the #to?(T.class) method, choosing the cast by T.

Instance methods

branches

Code returning the cast instance, by target Crystal type name, or a Proc building it when the code is generated.

Source
inherited=(inherited : Bool)

Does the Crystal superclass also have a #to? method?

Source
inherited?

Does the Crystal superclass also have a #to? method?

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

Will be called by a Generator later on, passing in the call and the target platform.

Source