Class: GirFFI::Builders::UnionBuilder

Inherits:
RegisteredTypeBuilder show all
Includes:
WithLayout, WithMethods
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 FFI::Union class to represent its C union.

Instance Attribute Summary

Attributes inherited from GirFFI::BaseTypeBuilder

#info

Instance Method Summary collapse

Methods included from WithLayout

#layout_specification

Methods included from WithMethods

#setup_instance_method, #setup_method

Methods inherited from GirFFI::BaseTypeBuilder

#build_class, #initialize

Methods included from GirFFI::BuilderHelper

#const_defined_for, #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



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

def layout_superclass
  FFI::Union
end