class Bindgen::Call::Result

Overview

Call result type configuration.

Direct Known Subclasses

Defined in:

bindgen/call.cr

Constructors

Instance Method Summary

Instance methods inherited from class Bindgen::Call::Expression

==(other : self) ==, hash(hasher) hash, nilable? : Bool nilable?, pointer : Int32 pointer, reference : Bool reference, type : Parser::Type type, type_name : String type_name

Constructor methods inherited from class Bindgen::Call::Expression

new(type : Bindgen::Parser::Type, reference : Bool, pointer : Int32, type_name : String, nilable : Bool) new

Constructor Detail

def self.new(type, type_name, reference, pointer, conversion : Nil | String, nilable = false) #

[View source]

Instance Method Detail

def conversion : String | Nil #

Conversion template (Util.template) to get the data out of the method, ready to be returned back.


[View source]
def to_argument(name : String, default = nil) : Argument #

Converts the result into an argument of name.


[View source]