class

Bindgen::Template::ProcFromWrapper

Inherits Bindgen::Template::Base < Reference < Object

Custom template to transform Procs for Crystal wrapper types into Proc expressions for binding types.

Constructors

new(proc_type : Parser::Type, db : TypeDatabase)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

Source
no_op?

Is this a no-operation template?

Source
template(code) : String

code names the Proc to call: the argument of the wrapper method.

Source