Module: GirFFI::Builders::WithLayout

Included in:
ObjectBuilder, StructBuilder, UnionBuilder
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



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

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