class
Bindgen::Processor::Inheritance::ToBody
- Bindgen::Processor::Inheritance::ToBody
- Bindgen::Call::Body
- Reference
- Object
Overview
Crystal body of the #to?(T.class) method, choosing the cast by T.
Defined in:
bindgen/processor/inheritance.crInstance Method Summary
-
#branches : Hash(String, -> String | String)
Code returning the cast instance, by target Crystal type name, or a
Procbuilding it when the code is generated. -
#inherited=(inherited : Bool)
Does the Crystal superclass also have a
#to?method? -
#inherited? : Bool
Does the Crystal superclass also have a
#to?method? -
#to_code(call : Call, platform : Graph::Platform) : String
Will be called by a
Generatorlater on, passing in the call and the target platform.
Instance methods inherited from class Bindgen::Call::Body
to_code(call : Call, platform : Graph::Platform) : String
to_code
Instance Method Detail
def branches : Hash(String, -> String | String)
#
Code returning the cast instance, by target Crystal type name, or a
Proc building it when the code is generated.
Description copied from class Bindgen::Call::Body
Will be called by a Generator later on, passing in the call and the
target platform.