class

OpenGLBindingGenerator::Crystal::Proc

Inherits OpenGLBindingGenerator::Crystal::Type < OpenGLBindingGenerator::Crystalize < OpenGLBindingGenerator::Crystal::LibDefinition < Reference < Object

Constructors

new(function : Function)
Source

Instance methods

name

Original name.

Source
size

The size of the type in bytes. This method shouldn't be called. It is expected to return an integer, but it can't be known the size a pointer will be on the target system.

Source
to_s(__io__ : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source

Macros

method_missing(call)
Source