Class: GirFFI::Builders::UnionBuilder

Inherits:
RegisteredTypeBuilder show all
Includes:
StructLike
Defined in:
lib/gir_ffi/builders/union_builder.rb

Overview

Implements the creation of a class representing union type. The class will have a nested GirFFI::Union class to represent its C union.

Instance Attribute Summary

Attributes inherited from GirFFI::BaseTypeBuilder

#info

Instance Method Summary collapse

Methods included from StructLike

#setup_class, #setup_field_accessors

Methods included from WithLayout

#layout_specification

Methods inherited from RegisteredTypeBuilder

#setup_instance_method, #setup_method, #target_gtype

Methods inherited from GirFFI::BaseTypeBuilder

#build_class, #initialize, #instantiate_class

Methods included from GirFFI::BuilderHelper

#get_or_define_class, #get_or_define_module, #optionally_define_constant

Constructor Details

This class inherits a constructor from GirFFI::BaseTypeBuilder

Instance Method Details

#layout_superclassObject



15
16
17
# File 'lib/gir_ffi/builders/union_builder.rb', line 15

def layout_superclass
  GirFFI::Union
end