Module: GirFFI::Builders::WithLayout

Included in:
ObjectBuilder, StructLike
Defined in:
lib/gir_ffi/builders/with_layout.rb

Overview

Implements the creation of classes representing types with layout, i.e., :union, :struct, :object. NOTE: This module depends on methods in RegisteredTypeBuilder.

Instance Method Summary collapse

Instance Method Details

#layout_specificationObject



11
12
13
14
15
16
17
18
# File 'lib/gir_ffi/builders/with_layout.rb', line 11

def layout_specification
  spec = base_layout_specification
  if spec.empty?
    dummy_layout_specification
  else
    spec
  end
end