Class: FFIGen::Clang::Type

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/ffi_gen/clang.rb,
lib/ffi_gen.rb

Overview

The type of an element in the abstract syntax tree.

Fields:

:kind

(Symbol from enum_type_kind)

:data

(Array<FFI::Pointer(*Void)>)

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



62
63
64
# File 'lib/ffi_gen.rb', line 62

def ==(other)
  other.is_a?(Clang::Type) && Clang.equal_types(self, other) == 1
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/ffi_gen.rb', line 66

def eql?(other)
  self == other
end

#hashObject



70
71
72
# File 'lib/ffi_gen.rb', line 70

def hash
  0 # no hash available
end